Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan McGovern <alan@xamarin.com>2013-12-17 18:01:31 +0400
committerAlan McGovern <alan@xamarin.com>2013-12-17 18:01:31 +0400
commit9108c843371395a0b2fb56acdd97f3947b05b5aa (patch)
tree7f3a3c223fbd1447751607fe9fd07f1927e6a28c /main/tests
parentbb5acf3bb4a2d9ac2112ec671285bee564724204 (diff)
[tests] Oops, don't null reference passing the message along
Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'main/tests')
-rw-r--r--main/tests/UnitTests/MonoDevelop.Projects/MSBuildTests.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.Projects/MSBuildTests.cs b/main/tests/UnitTests/MonoDevelop.Projects/MSBuildTests.cs
index 5dc9d58b97..caaf080dbc 100644
--- a/main/tests/UnitTests/MonoDevelop.Projects/MSBuildTests.cs
+++ b/main/tests/UnitTests/MonoDevelop.Projects/MSBuildTests.cs
@@ -395,7 +395,9 @@ namespace MonoDevelop.Projects
var clientProfileError =
"Unable to find framework corresponding to the target framework moniker " +
"'.NETFramework,Version=v4.0,Profile=Client'";
- Assert.IsTrue (f == null || f.ErrorText.Contains (clientProfileError), "Build failed with: " + f.ErrorText);
+
+ if (f != null)
+ Assert.IsTrue (f.ErrorText.Contains (clientProfileError), "Build failed with: " + f.ErrorText);
}
[Test]