Improve nunit error reporting in case of a test returning a null results object in...
authorAndi McClure <andi.mcclure@xamarin.com>
Mon, 23 Nov 2015 19:27:18 +0000 (14:27 -0500)
committerAndi McClure <andi.mcclure@xamarin.com>
Mon, 23 Nov 2015 19:27:18 +0000 (14:27 -0500)
mcs/nunit24/ConsoleRunner/nunit-console/ConsoleUi.cs

index e89d705e83c32e0d5cff7b929c38995ea8a9baf3..072b1efc9c10be25dbb63461f06feebc60d51845 100644 (file)
@@ -158,7 +158,7 @@ namespace NUnit.ConsoleRunner
                                //if ( testRunner != null )\r
                                //    testRunner.Unload();\r
 \r
-                               if ( collector.HasExceptions )\r
+                               if ( result == null || collector.HasExceptions )\r
                                {\r
                                        collector.WriteExceptions();\r
                                        return UNEXPECTED_ERROR;\r