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