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