From: Ankit Jain Date: Fri, 11 Mar 2016 19:46:51 +0000 (-0500) Subject: [xbuild] Remove ErrorTest.TestExecute1() X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=b9dd48c9c44bbc9c057aee9bd834de7966ae8565 [xbuild] Remove ErrorTest.TestExecute1() This was an incorrect test. Tasks can't really be used like this especially this once since it tries to Log an error, but it hasn't been assigned a BuildEngine yet! Other fixes in TaskLoggingHelper expose this issue. --- diff --git a/mcs/class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks/ErrorTest.cs b/mcs/class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks/ErrorTest.cs index 91a2b3059dd..d57387d754e 100644 --- a/mcs/class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks/ErrorTest.cs +++ b/mcs/class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks/ErrorTest.cs @@ -145,13 +145,6 @@ namespace MonoTests.Microsoft.Build.Tasks { Assert.AreEqual (0, testLogger.CheckHead ("Text", "HelpKeyword", "Code"), "A1"); } - - [Test] - public void TestExecute1 () - { - Error error = new Error (); - Assert.AreEqual (false, error.Execute (), "A1"); - } } }