[xbuild]: Fix the tests.
authorMartin Baulig <martin.baulig@xamarin.com>
Wed, 4 Dec 2013 19:32:48 +0000 (20:32 +0100)
committerMartin Baulig <martin.baulig@xamarin.com>
Wed, 4 Dec 2013 19:38:10 +0000 (20:38 +0100)
commitc64997288f2a7cbb804b3058dc0acdcc10fcf2e5
tree2d2842094fa5cb5b1522ccd0a22b08a730fd11d4
parent4917c943181cece11c93b6be23781d13e7d6853f
[xbuild]: Fix the tests.

'TestMessageLogger.Count' should not be used in tests to check for the
number of logged messages because it would also includes diagnostic messages.

Extra diagnostic messages should not be considered an error condition; in
fact, we have too few diagnostic messages, not too many.

Use 'TestMessageLogger.NormalMessageCount' and 'TestMessageLogger.WarningMessageCount'
instead.
mcs/class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/TargetTest.cs
mcs/class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks/TaskBatchingTest.cs
mcs/class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks/TestMessageLogger.cs