Skip to content
Snippets Groups Projects
Commit 31b8316a authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

make NUnitMain fail on failure

parent 04743d7a
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
......
......
......@@ -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
}
}
......
......
......@@ -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
}
}
......
......
......@@ -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
}
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment