[System] Report test failure using Assert
authorMarek Safar <marek.safar@gmail.com>
Tue, 29 Nov 2016 11:01:19 +0000 (12:01 +0100)
committerMarek Safar <marek.safar@gmail.com>
Tue, 29 Nov 2016 11:01:19 +0000 (12:01 +0100)
mcs/class/System/Test/Microsoft.CSharp/CSharpCodeProviderTest.cs

index 2e9ef60993db000f2d431ec64db0d2c088b73bb0..212ab339e466f14da197dd2e28e05a1daac95358 100644 (file)
@@ -639,7 +639,7 @@ namespace MonoTests.Microsoft.CSharp
                                        continue;
                                }
 
-                               throw new Exception (compilerError.ToString ());
+                               Assert.Fail (compilerError.ToString ());
                        }
                }