aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-09 14:44:22 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-11 11:09:31 -0700
commit31b8316ab9ac69f5d870a74330ccd9dfd1e4ba76 (patch)
treee58709556428174f3acfec75315122256c4fea7a /src/csharp
parent04743d7a0b4e6a27bdab75cccab3201b2d81f95f (diff)
make NUnitMain fail on failure
Diffstat (limited to 'src/csharp')
-rw-r--r--src/csharp/Grpc.Core.Tests/NUnitMain.cs6
-rw-r--r--src/csharp/Grpc.Examples.Tests/NUnitMain.cs6
-rw-r--r--src/csharp/Grpc.HealthCheck.Tests/NUnitMain.cs6
-rw-r--r--src/csharp/Grpc.IntegrationTesting/NUnitMain.cs6
4 files changed, 12 insertions, 12 deletions
diff --git a/src/csharp/Grpc.Core.Tests/NUnitMain.cs b/src/csharp/Grpc.Core.Tests/NUnitMain.cs
index 494bb0a33f..13e5b27f7b 100644
--- a/src/csharp/Grpc.Core.Tests/NUnitMain.cs
+++ b/src/csharp/Grpc.Core.Tests/NUnitMain.cs
@@ -43,12 +43,12 @@ namespace Grpc.Core.Tests
/// </summary>
public class NUnitMain
{
- public static void Main(string[] args)
+ public static int Main(string[] args)
{
#if DOTNET5_4
- new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
+ return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else
- new AutoRun().Execute(args);
+ return new AutoRun().Execute(args);
#endif
}
}
diff --git a/src/csharp/Grpc.Examples.Tests/NUnitMain.cs b/src/csharp/Grpc.Examples.Tests/NUnitMain.cs
index 0f234086d8..e6b76bcf3b 100644
--- a/src/csharp/Grpc.Examples.Tests/NUnitMain.cs
+++ b/src/csharp/Grpc.Examples.Tests/NUnitMain.cs
@@ -43,12 +43,12 @@ namespace Grpc.Examples.Tests
/// </summary>
public class NUnitMain
{
- public static void Main(string[] args)
+ public static int Main(string[] args)
{
#if DOTNET5_4
- new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
+ return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else
- new AutoRun().Execute(args);
+ return new AutoRun().Execute(args);
#endif
}
}
diff --git a/src/csharp/Grpc.HealthCheck.Tests/NUnitMain.cs b/src/csharp/Grpc.HealthCheck.Tests/NUnitMain.cs
index 8d5182155e..6d77b12fef 100644
--- a/src/csharp/Grpc.HealthCheck.Tests/NUnitMain.cs
+++ b/src/csharp/Grpc.HealthCheck.Tests/NUnitMain.cs
@@ -43,12 +43,12 @@ namespace Grpc.HealthCheck.Tests
/// </summary>
public class NUnitMain
{
- public static void Main(string[] args)
+ public static int Main(string[] args)
{
#if DOTNET5_4
- new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
+ return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else
- new AutoRun().Execute(args);
+ return new AutoRun().Execute(args);
#endif
}
}
diff --git a/src/csharp/Grpc.IntegrationTesting/NUnitMain.cs b/src/csharp/Grpc.IntegrationTesting/NUnitMain.cs
index 45fa0e5d0c..4db8e158d3 100644
--- a/src/csharp/Grpc.IntegrationTesting/NUnitMain.cs
+++ b/src/csharp/Grpc.IntegrationTesting/NUnitMain.cs
@@ -43,12 +43,12 @@ namespace Grpc.IntegrationTesting
/// </summary>
public class NUnitMain
{
- public static void Main(string[] args)
+ public static int Main(string[] args)
{
#if DOTNET5_4
- new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
+ return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args, new ExtendedTextWrapper(Console.Out), Console.In);
#else
- new AutoRun().Execute(args);
+ return new AutoRun().Execute(args);
#endif
}
}