6 writes to Log
Microsoft.Build.Utilities.UnitTests (6)
TaskLoggingHelper_Tests.cs (4)
260
engine.
Log
= string.Empty;
267
engine.
Log
= string.Empty;
275
engine.
Log
= string.Empty;
281
engine.
Log
= string.Empty;
ToolTask_Tests.cs (2)
430
engine.
Log
= string.Empty;
1039
engine.
Log
= string.Empty;
15 references to Log
Microsoft.Build.Utilities.UnitTests (15)
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)
116
mockEngine.
Log
.ShouldContain("MySuperCommand");
162
mockEngine.
Log
.Contains("filename(1,2,3,4): Romulan error : Oops I wiped your harddrive foo").ShouldBeTrue();
163
mockEngine.
Log
.Contains("filename(1,2,3,4): Romulan warning : Be nice or I wipe your harddrive foo").ShouldBeTrue();
164
mockEngine.
Log
.Contains("Oops I wiped your harddrive foo").ShouldBeTrue();
165
mockEngine.
Log
.Contains("Be nice or I wipe your harddrive foo").ShouldBeTrue();
ToolTask_Tests.cs (8)
1036
if (!string.IsNullOrEmpty(engine.
Log
))
1038
_output.WriteLine(engine.
Log
);
1083
_output.WriteLine(engine.
Log
);
1084
engine.
Log
.ShouldContain("hello");
1109
_output.WriteLine(engine.
Log
);
1112
engine.
Log
.ShouldContain("line1");
1113
engine.
Log
.ShouldContain("line2");
1114
engine.
Log
.ShouldContain("line3");