diff options
author | Alan McGovern <alan@xamarin.com> | 2013-12-17 18:01:31 +0400 |
---|---|---|
committer | Alan McGovern <alan@xamarin.com> | 2013-12-17 18:01:31 +0400 |
commit | 9108c843371395a0b2fb56acdd97f3947b05b5aa (patch) | |
tree | 7f3a3c223fbd1447751607fe9fd07f1927e6a28c /main/tests | |
parent | bb5acf3bb4a2d9ac2112ec671285bee564724204 (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.cs | 4 |
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] |