make NUnitMain fail on failure

pull/6134/head
Jan Tattermusch 9 years ago
parent 04743d7a0b
commit 31b8316ab9
  1. 6
      src/csharp/Grpc.Core.Tests/NUnitMain.cs
  2. 6
      src/csharp/Grpc.Examples.Tests/NUnitMain.cs
  3. 6
      src/csharp/Grpc.HealthCheck.Tests/NUnitMain.cs
  4. 6
      src/csharp/Grpc.IntegrationTesting/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
}
}

@ -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
}
}

Loading…
Cancel
Save