Base:
57 references to ToString
Microsoft.Build.Engine.UnitTests (57)
ConsoleLogger_Tests.cs (57)
107
return sc.
ToString
();
183
sc.
ToString
().ShouldContain("XXX:");
222
sc.
ToString
().ShouldContain("source_of_warning : warning : Hello from project 1 [" + project.ProjectFile + "::Number=1]");
223
sc.
ToString
().ShouldContain("source_of_warning : warning : Hello from project 2 [" + project.ProjectFile + "::Number=2]");
263
sc.
ToString
().ShouldContain("source_of_error : error : Hello from project 1 [" + project.ProjectFile + "::Number=1]");
264
sc.
ToString
().ShouldContain("source_of_error : error : Hello from project 2 [" + project.ProjectFile + "::Number=2]");
315
string output = sc.
ToString
();
338
var text = sc.
ToString
();
353
string log = sc.
ToString
();
370
sc.
ToString
().ShouldNotContain("YYY:");
392
sc.
ToString
().ShouldContain(targetStartedMessage);
416
sc.
ToString
().ShouldContain(command);
423
sc.
ToString
().ShouldContain(command);
430
sc.
ToString
().ShouldNotContain(command);
437
sc.
ToString
().ShouldNotContain(command);
444
sc.
ToString
().ShouldContain(command);
615
console.
ToString
().ShouldContain(message + Environment.NewLine);
619
console.
ToString
().ShouldBeEmpty();
670
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>");
674
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>");
726
sc.
ToString
().ShouldBeEmpty();
780
_output.WriteLine(sc.
ToString
());
783
sc.
ToString
().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>");
842
_output.WriteLine(sc.
ToString
());
845
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
899
sc.
ToString
().ShouldBeEmpty();
956
_output.WriteLine(sc.
ToString
());
959
sc.
ToString
().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>");
1017
_output.WriteLine(sc.
ToString
());
1020
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1078
_output.WriteLine(sc.
ToString
());
1081
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1098
sc.
ToString
().ShouldBe($"msg{Environment.NewLine}");
1115
sc.
ToString
().ShouldContain("msg");
1131
sc.
ToString
().ShouldBeEmpty();
1155
string log = sc.
ToString
();
1299
string log = sc.
ToString
();
1365
string log = sc.
ToString
();
1414
string log = sc.
ToString
();
1435
string log = sc.
ToString
();
1553
string actualLog = sc.
ToString
();
1556
_output.WriteLine(sc.
ToString
());
1575
actualLog = sc.
ToString
();
1578
_output.WriteLine(sc.
ToString
());
1640
string actualLog = sc.
ToString
();
1643
_output.WriteLine(sc.
ToString
());
1662
actualLog = sc.
ToString
();
1665
_output.WriteLine(sc.
ToString
());
1774
string actualLog = sc.
ToString
();
1777
_output.WriteLine(sc.
ToString
());
1797
actualLog = sc.
ToString
();
1800
_output.WriteLine(sc.
ToString
());
1825
string actualLog = sc.
ToString
();
1839
actualLog = sc.
ToString
();
1856
actualLog = sc.
ToString
();
1895
string actualLog = sc.
ToString
();
1939
string actualLog = sc.
ToString
();