diff --git a/src/Build.UnitTests/Parser_Tests.cs b/src/Build.UnitTests/Parser_Tests.cs index 7a27e3463d2..3424c237464 100644 --- a/src/Build.UnitTests/Parser_Tests.cs +++ b/src/Build.UnitTests/Parser_Tests.cs @@ -526,5 +526,18 @@ public void VerifyNoWarningForOrder() // Make sure the log contains the correct strings. Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - ($(a) == 1 or $(b) == 2) and $(c) == 3." } + + [Fact] + public void WhitespaceTest() + { + MockLogger ml = ObjectModelHelpers.BuildProjectExpectFailure(@" + + + + + "); + + Assert.Contains("MSB4151:", ml.FullLog); + } } }