1 instantiation of ProcessResult
Microsoft.CodeAnalysis.Test.Utilities (1)
41 references to ProcessResult
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (11)
IntegrationTests.cs (10)
58private ProcessResult RunCommandLineCompiler(
71private ProcessResult RunCommandLineCompiler(
96private ProcessResult RunCompilerOutput(TempFile file)
101private static void VerifyResult(ProcessResult result)
108private void VerifyResultAndOutput(ProcessResult result, TempDirectory path, string expectedOutput)
114var runningResult = RunCompilerOutput(resultFile);
408var result = RunCommandLineCompiler(_msbuildExecutable, arguments, _tempDirectory, SimpleMsBuildFiles);
420var runningResult = RunCompilerOutput(resultFile);
607var result = RunCommandLineCompiler(_msbuildExecutable, arguments, _tempDirectory, ReportAnalyzerMsBuildFiles,
782var result = RunCommandLineCompiler(_msbuildExecutable, "/p:UseSharedCompilation=false", testDir.Path);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (11)
CommandLineTests.cs (11)
154var result = ProcessUtilities.Run(exePath, arguments: "");
408var result = ProcessUtilities.Run(Path.Combine(dir.Path, "sjis.exe"), arguments: "", workingDirectory: dir.Path);
428var result = ProcessUtilities.Run(Path.Combine(dir.Path, "sjis.exe"), arguments: "", workingDirectory: dir.Path);
5970ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
6006ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
6039ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
6073ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
6085ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
11999var result = ProcessUtilities.Run(cscPath, arguments: "/nologo /t:library unknown.cs", workingDirectory: dir.Path);
12026var result = ProcessUtilities.Run(s_CSharpCompilerExecutable, arguments: $"/nologo /t:library /analyzer:{analyzerFileName} {srcFileName}", workingDirectory: analyzerDir.Path);
12232var result = ProcessUtilities.Run(
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (6)
CsiTests.cs (6)
36var result = ProcessUtilities.Run(CsiPath, "/r:C.dll a.csx", workingDirectory: dir.Path);
48var result = ProcessUtilities.Run(CsiPath, "", stdInput:
94var result = ProcessUtilities.Run(CsiPath, "/r:C.dll a.csx", workingDirectory: cwd.Path, additionalEnvironmentVars: new[] { KeyValuePairUtil.Create("LIB", dir.Path) });
110var result = ProcessUtilities.Run(CsiPath, "/r:System.Data.dll /u:System.Data;System a.csx", workingDirectory: cwd.Path);
135var result = ProcessUtilities.Run(CsiPath, "a.csx", workingDirectory: cwd.Path);
151var result = ProcessUtilities.Run(CsiPath, "a.csx", workingDirectory: cwd.Path);
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
NewlyCreatedProjectsFromDotNetNew.cs (5)
110var result = RunDotNet($"new list --type project --language {language}", output: null);
186var newResult = RunDotNet($"new \"{templateName}\" -o \"{outputDirectory}\" --language \"{language}\"", output, outputDirectory);
199var restoreResult = RunDotNet($"restore", output, outputDirectory);
249private static ProcessResult RunDotNet(string arguments, ITestOutputHelper? output, string? workingDirectory = null)
259var result = ProcessUtilities.Run(dotNetExeName, arguments, workingDirectory, additionalEnvironmentVars);
VBCSCompiler.UnitTests (2)