From b9dd48c9c44bbc9c057aee9bd834de7966ae8565 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Fri, 11 Mar 2016 14:46:51 -0500 Subject: [PATCH] [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. --- .../Test/Microsoft.Build.Tasks/ErrorTest.cs | 7 ------- 1 file changed, 7 deletions(-) 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"); - } } } -- 2.25.1