1 write to Output
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\ProcessResult.cs (1)
24Output = output;
88 references to Output
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (29)
src\Compilers\Core\MSBuildTaskTests\TestUtilities\IntegrationTestBase.cs (29)
178_output.WriteLine(result.Output); 181Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 185Assert.DoesNotContain("csc.dll", result.Output); 186Assert.Contains($"csc{PlatformInformation.ExeExtension} ", result.Output); 190Assert.Contains("csc.dll", result.Output); 191Assert.DoesNotContain($"csc{PlatformInformation.ExeExtension} ", result.Output); 253_output.WriteLine(result.Output); 256Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 260Assert.DoesNotContain("vbc.dll", result.Output); 261Assert.Contains($"vbc{PlatformInformation.ExeExtension} ", result.Output); 265Assert.Contains("vbc.dll", result.Output); 266Assert.DoesNotContain($"vbc{PlatformInformation.ExeExtension} ", result.Output); 294_output.WriteLine(result.Output); 302Assert.Contains("error CS0246", result.Output); 307Assert.Contains("error CS0006", result.Output); 312Assert.Contains("error CS0234", result.Output); 320Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 350_output.WriteLine(result.Output); 358Assert.Contains("error BC2017", result.Output); 364Assert.Contains("error BC30451", result.Output); 372Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 405_output.WriteLine(result.Output); 411Assert.Contains("error CS0234", result.Output); 416Assert.Contains($"{(includeCustomRsp ? "error" : "warning")} CS0618", result.Output); 419Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 453_output.WriteLine(result.Output); 459Assert.Contains("error BC30002", result.Output); 464Assert.Contains($"{(includeCustomRsp ? "error" : "warning")} BC40000", result.Output); 467Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (35)
IntegrationTests.cs (3)
325Assert.Equal("", result.Output); 330Assert.Equal("Hello\r\nthere\r\nWorld\r\n", runningResult.Output); 523Assert.Contains("/reportanalyzer", result.Output);
SdkIntegrationTests.cs (2)
77Assert.True(result.ExitCode == 0, $"MSBuild failed with exit code {result.ExitCode}: {result.Output}"); 81Assert.False(result.ExitCode == 0, $"MSBuild failed with exit code {result.ExitCode}: {result.Output}");
TestUtilities\DotNetSdkTestBase.cs (1)
214Assert.True(result.ExitCode == 0, $"MSBuild failed with exit code {result.ExitCode}: {result.Output}");
TestUtilities\IntegrationTestBase.cs (29)
178_output.WriteLine(result.Output); 181Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 185Assert.DoesNotContain("csc.dll", result.Output); 186Assert.Contains($"csc{PlatformInformation.ExeExtension} ", result.Output); 190Assert.Contains("csc.dll", result.Output); 191Assert.DoesNotContain($"csc{PlatformInformation.ExeExtension} ", result.Output); 253_output.WriteLine(result.Output); 256Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 260Assert.DoesNotContain("vbc.dll", result.Output); 261Assert.Contains($"vbc{PlatformInformation.ExeExtension} ", result.Output); 265Assert.Contains("vbc.dll", result.Output); 266Assert.DoesNotContain($"vbc{PlatformInformation.ExeExtension} ", result.Output); 294_output.WriteLine(result.Output); 302Assert.Contains("error CS0246", result.Output); 307Assert.Contains("error CS0006", result.Output); 312Assert.Contains("error CS0234", result.Output); 320Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 350_output.WriteLine(result.Output); 358Assert.Contains("error BC2017", result.Output); 364Assert.Contains("error BC30451", result.Output); 372Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 405_output.WriteLine(result.Output); 411Assert.Contains("error CS0234", result.Output); 416Assert.Contains($"{(includeCustomRsp ? "error" : "warning")} CS0618", result.Output); 419Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output); 453_output.WriteLine(result.Output); 459Assert.Contains("error BC30002", result.Output); 464Assert.Contains($"{(includeCustomRsp ? "error" : "warning")} BC40000", result.Output); 467Assert.Contains(useSharedCompilation ? "server processed compilation" : "using command line tool by design", result.Output);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (11)
CommandLineTests.cs (11)
6025Assert.False(result.ContainsErrors, $"Compilation error(s) occurred: {result.Output} {result.Errors}"); 6059Assert.False(result.ContainsErrors, $"Compilation error(s) occurred: {result.Output} {result.Errors}"); 6084Assert.False(result.ContainsErrors, $"Compilation error(s) occurred: {result.Output} {result.Errors}"); 6085Assert.Equal("Hello World!", result.Output.Trim()); 6112Assert.Contains(((int)ErrorCode.ERR_StdInOptionProvidedButConsoleInputIsNotRedirected).ToString(), result.Output); 6140Assert.Contains(((int)ErrorCode.WRN_FileAlreadyIncluded).ToString(), result.Output); 12022result.Output.Trim()); 12030result.Output.Trim()); 12260"The specified module could not be found. (Exception from HRESULT: 0x8007007E)'", result.Output.Trim()); 12264AssertEx.AssertEqualToleratingWhitespaceDifferences("", result.Output.Trim()); 12273Assert.Equal("", result.Output.Trim());
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (5)
CsiTests.cs (5)
38AssertEx.AssertEqualToleratingWhitespaceDifferences(dir.Path + ";C", result.Output); 73AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, result.Output); 113AssertEx.AssertEqualToleratingWhitespaceDifferences("DataSet", result.Output); 138AssertEx.AssertEqualToleratingWhitespaceDifferences("OK", result.Output); 155AssertEx.AssertEqualToleratingWhitespaceDifferences("OK", result.Output);
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\ProcessResult.cs (1)
35this.Output +
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
NetCoreTests.cs (1)
50Assert.True(restoreResult.ExitCode == 0, $"{dotNetExeName} failed with exit code {restoreResult.ExitCode}: {restoreResult.Output}");
NewlyCreatedProjectsFromDotNetNew.cs (4)
111var lines = result.Output.Split(["\r", "\n"], StringSplitOptions.RemoveEmptyEntries); 194if (newResult.Output.Contains("Restoring")) 286result.Output, 294logger?.LogTrace(result.Output);
VBCSCompiler.UnitTests (2)
CompilerServerTests.cs (2)
232Assert.Equal(expectedOutput.Trim(), result.Output.Trim()); 1438Assert.Equal("", result.Output.Trim());