Base:
73 references to ToString
Microsoft.Build.Engine.UnitTests (73)
ConsoleLogger_Tests.cs (73)
108
return sc.
ToString
();
185
sc.
ToString
().ShouldContain("XXX:");
224
sc.
ToString
().ShouldContain("source_of_warning : warning : Hello from project 1 [" + project.ProjectFile + "::Number=1]");
225
sc.
ToString
().ShouldContain("source_of_warning : warning : Hello from project 2 [" + project.ProjectFile + "::Number=2]");
265
sc.
ToString
().ShouldContain("source_of_error : error : Hello from project 1 [" + project.ProjectFile + "::Number=1]");
266
sc.
ToString
().ShouldContain("source_of_error : error : Hello from project 2 [" + project.ProjectFile + "::Number=2]");
317
string output = sc.
ToString
();
340
var text = sc.
ToString
();
355
string log = sc.
ToString
();
372
sc.
ToString
().ShouldNotContain("YYY:");
394
sc.
ToString
().ShouldContain(targetStartedMessage);
418
sc.
ToString
().ShouldContain(command);
425
sc.
ToString
().ShouldContain(command);
432
sc.
ToString
().ShouldNotContain(command);
439
sc.
ToString
().ShouldNotContain(command);
446
sc.
ToString
().ShouldContain(command);
632
console.
ToString
().ShouldBe(message + Environment.NewLine);
636
console.
ToString
().ShouldBeEmpty();
693
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>");
697
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>");
704
console.
ToString
().ShouldMatch($@"<{expectedColor}>{Regex.Escape(file)}\({lineNumber}\): {subcategory} {expectedMessageType} {code}: {message}{Environment.NewLine}<reset color>");
759
sc.
ToString
().ShouldBeEmpty();
816
_output.WriteLine(sc.
ToString
());
821
sc.
ToString
().ShouldBe(
830
sc.
ToString
().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>");
893
_output.WriteLine(sc.
ToString
());
898
sc.
ToString
().ShouldBe(
907
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
965
sc.
ToString
().ShouldBeEmpty();
1025
_output.WriteLine(sc.
ToString
());
1030
sc.
ToString
().ShouldBe(
1039
sc.
ToString
().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>");
1101
_output.WriteLine(sc.
ToString
());
1106
sc.
ToString
().ShouldBe(
1115
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1177
_output.WriteLine(sc.
ToString
());
1182
sc.
ToString
().ShouldBe(
1191
sc.
ToString
().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1269
sc.
ToString
().ShouldBeEmpty();
1277
sc.
ToString
().ShouldBe(
1305
sc.
ToString
().ShouldBe("<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
1313
sc.
ToString
().ShouldBeEmpty();
1320
sc.
ToString
().ShouldBe(
1332
sc.
ToString
().ShouldBeEmpty();
1338
sc.
ToString
().ShouldBeEmpty();
1344
sc.
ToString
().ShouldBeEmpty();
1350
sc.
ToString
().ShouldStartWith("<green>" + Environment.NewLine + "bf" +
1379
sc.
ToString
().ShouldBe($"msg{Environment.NewLine}");
1396
sc.
ToString
().ShouldContain("msg");
1413
sc.
ToString
().ShouldBeEmpty();
1447
string log = sc.
ToString
();
1630
string log = sc.
ToString
();
1708
string log = sc.
ToString
();
1779
string log = sc.
ToString
();
1813
string log = sc.
ToString
();
1975
string actualLog = sc.
ToString
();
1978
_output.WriteLine(sc.
ToString
());
1997
actualLog = sc.
ToString
();
2000
_output.WriteLine(sc.
ToString
());
2065
string actualLog = sc.
ToString
();
2068
_output.WriteLine(sc.
ToString
());
2088
actualLog = sc.
ToString
();
2091
_output.WriteLine(sc.
ToString
());
2202
string actualLog = sc.
ToString
();
2205
_output.WriteLine(sc.
ToString
());
2225
actualLog = sc.
ToString
();
2228
_output.WriteLine(sc.
ToString
());
2254
string actualLog = sc.
ToString
();
2268
actualLog = sc.
ToString
();
2285
actualLog = sc.
ToString
();
2324
string actualLog = sc.
ToString
();
2368
string actualLog = sc.
ToString
();
2427
string actualLog = sc.
ToString
();