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