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