5 writes to Log
Microsoft.Build.Utilities.UnitTests (5)
TaskLoggingHelper_Tests.cs (4)
259
engine.
Log
= string.Empty;
266
engine.
Log
= string.Empty;
274
engine.
Log
= string.Empty;
280
engine.
Log
= string.Empty;
ToolTask_Tests.cs (1)
389
engine.
Log
= string.Empty;
8 references to Log
Microsoft.Build.Utilities.UnitTests (8)
MockEngine.cs (2)
98
internal void AssertLogContains(string contains) => Assert.Contains(contains,
Log
, StringComparison.OrdinalIgnoreCase);
130
internal void AssertLogDoesntContain(string contains) => Assert.DoesNotContain(contains,
Log
, StringComparison.OrdinalIgnoreCase);
TaskLoggingHelper_Tests.cs (5)
117
mockEngine.
Log
.ShouldContain("MySuperCommand");
161
mockEngine.
Log
.Contains("filename(1,2,3,4): Romulan error : Oops I wiped your harddrive foo").ShouldBeTrue();
162
mockEngine.
Log
.Contains("filename(1,2,3,4): Romulan warning : Be nice or I wipe your harddrive foo").ShouldBeTrue();
163
mockEngine.
Log
.Contains("Oops I wiped your harddrive foo").ShouldBeTrue();
164
mockEngine.
Log
.Contains("Be nice or I wipe your harddrive foo").ShouldBeTrue();
ToolTask_Tests.cs (1)
963
_output.WriteLine(engine.
Log
);