1 write to Output
Microsoft.CodeAnalysis.Test.Utilities (1)
94 references to Output
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (32)
src\Compilers\Core\MSBuildTaskTests\TestUtilities\IntegrationTestBase.cs (32)
134var pipeName = Regex.Match(result.Output, @"Named pipe '([^']+)' connected").Groups[1].Value;
201_output.WriteLine(result.Output);
209Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
210Assert.Equal(ManagedToolTask.IsBuiltinToolRunningOnCoreClr, result.Output.Contains("Setting DOTNET_ROOT to"));
214Assert.DoesNotContain("csc.dll", result.Output);
215Assert.Contains($"csc{PlatformInformation.ExeExtension} ", result.Output);
219Assert.Contains("csc.dll", result.Output);
220Assert.DoesNotContain($"csc{PlatformInformation.ExeExtension} ", result.Output);
283_output.WriteLine(result.Output);
291Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
292Assert.Equal(ManagedToolTask.IsBuiltinToolRunningOnCoreClr, result.Output.Contains("Setting DOTNET_ROOT to"));
296Assert.DoesNotContain("vbc.dll", result.Output);
297Assert.Contains($"vbc{PlatformInformation.ExeExtension} ", result.Output);
301Assert.Contains("vbc.dll", result.Output);
302Assert.DoesNotContain($"vbc{PlatformInformation.ExeExtension} ", result.Output);
331_output.WriteLine(result.Output);
344Assert.Contains("error CS0246", result.Output);
349Assert.Contains("error CS0006", result.Output);
354Assert.Contains("error CS0234", result.Output);
362Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
393_output.WriteLine(result.Output);
406Assert.Contains("error BC2017", result.Output);
412Assert.Contains("error BC30451", result.Output);
420Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
454_output.WriteLine(result.Output);
465Assert.Contains("error CS0234", result.Output);
470Assert.Contains($"{(includeCustomRsp ? "error" : "warning")} CS0618", result.Output);
473Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
508_output.WriteLine(result.Output);
519Assert.Contains("error BC30002", result.Output);
524Assert.Contains($"{(includeCustomRsp ? "error" : "warning")} BC40000", result.Output);
527Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (38)
TestUtilities\IntegrationTestBase.cs (32)
134var pipeName = Regex.Match(result.Output, @"Named pipe '([^']+)' connected").Groups[1].Value;
201_output.WriteLine(result.Output);
209Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
210Assert.Equal(ManagedToolTask.IsBuiltinToolRunningOnCoreClr, result.Output.Contains("Setting DOTNET_ROOT to"));
214Assert.DoesNotContain("csc.dll", result.Output);
215Assert.Contains($"csc{PlatformInformation.ExeExtension} ", result.Output);
219Assert.Contains("csc.dll", result.Output);
220Assert.DoesNotContain($"csc{PlatformInformation.ExeExtension} ", result.Output);
283_output.WriteLine(result.Output);
291Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
292Assert.Equal(ManagedToolTask.IsBuiltinToolRunningOnCoreClr, result.Output.Contains("Setting DOTNET_ROOT to"));
296Assert.DoesNotContain("vbc.dll", result.Output);
297Assert.Contains($"vbc{PlatformInformation.ExeExtension} ", result.Output);
301Assert.Contains("vbc.dll", result.Output);
302Assert.DoesNotContain($"vbc{PlatformInformation.ExeExtension} ", result.Output);
331_output.WriteLine(result.Output);
344Assert.Contains("error CS0246", result.Output);
349Assert.Contains("error CS0006", result.Output);
354Assert.Contains("error CS0234", result.Output);
362Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
393_output.WriteLine(result.Output);
406Assert.Contains("error BC2017", result.Output);
412Assert.Contains("error BC30451", result.Output);
420Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
454_output.WriteLine(result.Output);
465Assert.Contains("error CS0234", result.Output);
470Assert.Contains($"{(includeCustomRsp ? "error" : "warning")} CS0618", result.Output);
473Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
508_output.WriteLine(result.Output);
519Assert.Contains("error BC30002", result.Output);
524Assert.Contains($"{(includeCustomRsp ? "error" : "warning")} BC40000", result.Output);
527Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (5)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
VBCSCompiler.UnitTests (2)