Skip to content

Commit 0de5b5a

Browse files
committed
[test] Fix test for skipped target
1 parent 2a61f87 commit 0de5b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ public void NoXamlFiles()
495495
var projectFile = IOPath.Combine(tempDirectory, "test.csproj");
496496
project.Save(projectFile);
497497
var log = Build(projectFile, verbosity: "diagnostic");
498-
Assert.IsTrue(log.Contains("Target \"XamlC\" skipped", StringComparison.Ordinal), "XamlC should be skipped if there are no .xaml files.");
498+
Assert.IsFalse(log.Contains("Building target \"XamlC\"", StringComparison.Ordinal), "XamlC should be skipped if there are no .xaml files.");
499499
}
500500
}
501501
}

0 commit comments

Comments
 (0)