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)
155var result = ProcessUtilities.Run(exePath, arguments: "");
409var result = ProcessUtilities.Run(Path.Combine(dir.Path, "sjis.exe"), arguments: "", workingDirectory: dir.Path);
429var result = ProcessUtilities.Run(Path.Combine(dir.Path, "sjis.exe"), arguments: "", workingDirectory: dir.Path);
6000ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
6036ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
6069ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
6103ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
6115ProcessResult result = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
12029var result = ProcessUtilities.Run(cscPath, arguments: "/nologo /t:library unknown.cs", workingDirectory: dir.Path);
12056var result = ProcessUtilities.Run(s_CSharpCompilerExecutable, arguments: $"/nologo /t:library /analyzer:{analyzerFileName} {srcFileName}", workingDirectory: analyzerDir.Path);
12262var 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)
104var result = RunDotNet($"new list --type project --language {language}", output: null);
180var newResult = RunDotNet($"new \"{templateName}\" -o \"{outputDirectory}\" --language \"{language}\"", output, outputDirectory);
193var restoreResult = RunDotNet($"restore", output, outputDirectory);
243private static ProcessResult RunDotNet(string arguments, ITestOutputHelper? output, string? workingDirectory = null)
253var result = ProcessUtilities.Run(dotNetExeName, arguments, workingDirectory, additionalEnvironmentVars);
VBCSCompiler.UnitTests (2)