23 references to RunAndGetOutput
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (21)
CommandLineTests.cs (21)
6041
ProcessUtilities.
RunAndGetOutput
("cmd.exe", $@"/C ""{s_DotnetCscRun} -.exe""", expectedRetCode: 0, startFolder: tempDir) :
6042
ProcessUtilities.
RunAndGetOutput
("sh", $@"-c ""{s_DotnetCscRun} -.exe""", expectedRetCode: 0, startFolder: tempDir);
6163
var output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C \"" + s_CSharpCompilerExecutable + "\" /nologo /preferreduilang:en /t:library " + srcFile + " > " + tempOut.Path, expectedRetCode: 1);
6178
var output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C \"" + s_CSharpCompilerExecutable + "\" /utf8output /nologo /preferreduilang:en /t:library " + srcFile + " > " + tempOut.Path, expectedRetCode: 1);
6194
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $"/nologo /t:module /out:a.netmodule \"{aCs}\"", startFolder: folder.ToString());
6197
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, "/nologo /t:library /out:b.dll /addmodule:a.netmodule ", startFolder: folder.ToString());
6200
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, "/nologo /preferreduilang:en /t:module /out:b.dll /addmodule:a.netmodule ", startFolder: folder.ToString());
6214
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, "/nologo /t:library /out:b.dll /resource:a.cs", startFolder: folder.ToString());
6228
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, "/nologo /t:library /out:b.dll /linkresource:a.cs", startFolder: folder.ToString());
7528
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $"/nologo /t:library \"{file}\"", startFolder: dir.Path);
7531
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $"/nologo /preferreduilang:en /t:library /codepage:20127 \"{file}\"", expectedRetCode: 1, startFolder: dir.Path); // 20127: US-ASCII
8266
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString());
8311
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString());
8340
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString());
8893
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $"/target:library /debug:portable \"{libSrc.Path}\"", startFolder: dir.ToString());
11442
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, String.Format("/nologo /doc:doc.xml /out:out.exe /resource:doc.xml \"{0}\"", src.ToString()), startFolder: dir.ToString());
11466
output = ProcessUtilities.
RunAndGetOutput
(Path.Combine(dir.ToString(), "out.exe"), startFolder: dir.ToString());
11818
var output = ProcessUtilities.
RunAndGetOutput
(csc32exe.Path, $@"/nologo /debug:full /deterministic /out:Program.exe /pathmap:""{dir32.Path}""=X:\ ""{sourceFile.Path}""", expectedRetCode: 0, startFolder: dir32.Path);
11821
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $@"/nologo /debug:full /deterministic /out:Program.exe /pathmap:""{dir64.Path}""=X:\ ""{sourceFile.Path}""", expectedRetCode: 0, startFolder: dir64.Path);
11843
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, args, startFolder: folderName);
11907
var output = ProcessUtilities.
RunAndGetOutput
(exe, startFolder: dir.Path);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\TypeForwarders.cs (2)
1599
var result = ProcessUtilities.
RunAndGetOutput
(asmB.Path);
1607
result = ProcessUtilities.
RunAndGetOutput
(asmB2.Path);