Base:
57 references to ToString
Microsoft.Build.Engine.UnitTests (57)
ConsoleLogger_Tests.cs (57)
106
return sc.
ToString
();
182
sc.
ToString
().ShouldContain("XXX:");
221
sc.
ToString
().ShouldContain("source_of_warning : warning : Hello from project 1 [" + project.ProjectFile + "::Number=1]");
222
sc.
ToString
().ShouldContain("source_of_warning : warning : Hello from project 2 [" + project.ProjectFile + "::Number=2]");
262
sc.
ToString
().ShouldContain("source_of_error : error : Hello from project 1 [" + project.ProjectFile + "::Number=1]");
263
sc.
ToString
().ShouldContain("source_of_error : error : Hello from project 2 [" + project.ProjectFile + "::Number=2]");
314
string output = sc.
ToString
();
337
var text = sc.
ToString
();
352
string log = sc.
ToString
();
369
sc.
ToString
().ShouldNotContain("YYY:");
391
sc.
ToString
().ShouldContain(targetStartedMessage);
415
sc.
ToString
().ShouldContain(command);
422
sc.
ToString
().ShouldContain(command);
429
sc.
ToString
().ShouldNotContain(command);
436
sc.
ToString
().ShouldNotContain(command);
443
sc.
ToString
().ShouldContain(command);
614
console.
ToString
().ShouldContain(message + Environment.NewLine);
618
console.
ToString
().ShouldBeEmpty();
669
console.
ToString
().ShouldMatch($@"<{expectedColor}><cyan>\d\d:\d\d:\d\d\.\d\d\d\s+\d+><reset color>{Regex.Escape(file)}\({lineNumber}\): {subcategory} {expectedMessageType} {code}: {message} \(TaskId:\d+\){Environment.NewLine}<reset color>");
673
console.
ToString
().ShouldMatch($@"<cyan>\d\d:\d\d:\d\d\.\d\d\d\s+\d+><reset color><{expectedColor}>{Regex.Escape(file)}\({lineNumber}\): {subcategory} {expectedMessageType} {code}: {message}{Environment.NewLine}<reset color>");
725
sc.
ToString
().ShouldBeEmpty();
779
_output.WriteLine(sc.
ToString
());
782
sc.
ToString
().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>");
841
_output.WriteLine(sc.
ToString
());
844
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
898
sc.
ToString
().ShouldBeEmpty();
955
_output.WriteLine(sc.
ToString
());
958
sc.
ToString
().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>");
1016
_output.WriteLine(sc.
ToString
());
1019
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1077
_output.WriteLine(sc.
ToString
());
1080
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1097
sc.
ToString
().ShouldBe($"msg{Environment.NewLine}");
1114
sc.
ToString
().ShouldContain("msg");
1130
sc.
ToString
().ShouldBeEmpty();
1154
string log = sc.
ToString
();
1314
string log = sc.
ToString
();
1380
string log = sc.
ToString
();
1429
string log = sc.
ToString
();
1450
string log = sc.
ToString
();
1568
string actualLog = sc.
ToString
();
1571
_output.WriteLine(sc.
ToString
());
1590
actualLog = sc.
ToString
();
1593
_output.WriteLine(sc.
ToString
());
1655
string actualLog = sc.
ToString
();
1658
_output.WriteLine(sc.
ToString
());
1677
actualLog = sc.
ToString
();
1680
_output.WriteLine(sc.
ToString
());
1789
string actualLog = sc.
ToString
();
1792
_output.WriteLine(sc.
ToString
());
1812
actualLog = sc.
ToString
();
1815
_output.WriteLine(sc.
ToString
());
1840
string actualLog = sc.
ToString
();
1854
actualLog = sc.
ToString
();
1871
actualLog = sc.
ToString
();
1910
string actualLog = sc.
ToString
();
1954
string actualLog = sc.
ToString
();