23 references to RunAndGetOutput
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (21)
CommandLineTests.cs (21)
6024
ProcessUtilities.
RunAndGetOutput
("cmd.exe", $@"/C ""{s_DotnetCscRun} -.exe""", expectedRetCode: 0, startFolder: tempDir) :
6025
ProcessUtilities.
RunAndGetOutput
("sh", $@"-c ""{s_DotnetCscRun} -.exe""", expectedRetCode: 0, startFolder: tempDir);
6146
var output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C \"" + s_CSharpCompilerExecutable + "\" /nologo /preferreduilang:en /t:library " + srcFile + " > " + tempOut.Path, expectedRetCode: 1);
6161
var output = ProcessUtilities.
RunAndGetOutput
("cmd", "/C \"" + s_CSharpCompilerExecutable + "\" /utf8output /nologo /preferreduilang:en /t:library " + srcFile + " > " + tempOut.Path, expectedRetCode: 1);
6177
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $"/nologo /t:module /out:a.netmodule \"{aCs}\"", startFolder: folder.ToString());
6180
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, "/nologo /t:library /out:b.dll /addmodule:a.netmodule ", startFolder: folder.ToString());
6183
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, "/nologo /preferreduilang:en /t:module /out:b.dll /addmodule:a.netmodule ", startFolder: folder.ToString());
6197
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, "/nologo /t:library /out:b.dll /resource:a.cs", startFolder: folder.ToString());
6211
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, "/nologo /t:library /out:b.dll /linkresource:a.cs", startFolder: folder.ToString());
7523
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $"/nologo /t:library \"{file}\"", startFolder: dir.Path);
7526
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $"/nologo /preferreduilang:en /t:library /codepage:20127 \"{file}\"", expectedRetCode: 1, startFolder: dir.Path); // 20127: US-ASCII
8260
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString());
8305
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString());
8334
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString());
8888
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $"/target:library /debug:portable \"{libSrc.Path}\"", startFolder: dir.ToString());
11376
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, String.Format("/nologo /doc:doc.xml /out:out.exe /resource:doc.xml \"{0}\"", src.ToString()), startFolder: dir.ToString());
11400
output = ProcessUtilities.
RunAndGetOutput
(Path.Combine(dir.ToString(), "out.exe"), startFolder: dir.ToString());
11751
var output = ProcessUtilities.
RunAndGetOutput
(csc32exe.Path, $@"/nologo /debug:full /deterministic /out:Program.exe /pathmap:""{dir32.Path}""=X:\ ""{sourceFile.Path}""", expectedRetCode: 0, startFolder: dir32.Path);
11754
output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, $@"/nologo /debug:full /deterministic /out:Program.exe /pathmap:""{dir64.Path}""=X:\ ""{sourceFile.Path}""", expectedRetCode: 0, startFolder: dir64.Path);
11776
var output = ProcessUtilities.
RunAndGetOutput
(s_CSharpCompilerExecutable, args, startFolder: folderName);
11840
var output = ProcessUtilities.
RunAndGetOutput
(exe, startFolder: dir.Path);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\TypeForwarders.cs (2)
1585
var result = ProcessUtilities.
RunAndGetOutput
(asmB.Path);
1593
result = ProcessUtilities.
RunAndGetOutput
(asmB2.Path);