5 writes to Log
Microsoft.Build.Utilities.UnitTests (5)
TaskLoggingHelper_Tests.cs (4)
261
engine.
Log
= string.Empty;
268
engine.
Log
= string.Empty;
276
engine.
Log
= string.Empty;
282
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");
163
mockEngine.
Log
.Contains("filename(1,2,3,4): Romulan error : Oops I wiped your harddrive foo").ShouldBeTrue();
164
mockEngine.
Log
.Contains("filename(1,2,3,4): Romulan warning : Be nice or I wipe your harddrive foo").ShouldBeTrue();
165
mockEngine.
Log
.Contains("Oops I wiped your harddrive foo").ShouldBeTrue();
166
mockEngine.
Log
.Contains("Be nice or I wipe your harddrive foo").ShouldBeTrue();
ToolTask_Tests.cs (1)
963
_output.WriteLine(engine.
Log
);