1 write to _tempDirectory
VBCSCompiler.UnitTests (1)
CompilerServerTests.cs (1)
66
_tempDirectory
= Temp.CreateDirectory();
87 references to _tempDirectory
VBCSCompiler.UnitTests (87)
CompilerServerTests.cs (87)
257
var newTempDir =
_tempDirectory
.CreateDirectory(new string('a', 100 -
_tempDirectory
.Path.Length));
266
_tempDirectory
,
269
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
282
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo hello.cs",
_tempDirectory
, s_helloWorldSrcCs, shouldRunOnServer: false);
283
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
297
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo hello.cs",
_tempDirectory
, files, redirectEncoding: Encoding.ASCII, shouldRunOnServer: false);
308
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
315
_tempDirectory
,
330
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText("♕").Path;
337
_tempDirectory
,
354
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText("♕").Path;
361
_tempDirectory
,
381
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo /vbruntime* hello.vb",
_tempDirectory
, s_helloWorldSrcVb, shouldRunOnServer: false);
382
VerifyResultAndOutput(result,
_tempDirectory
, "Hello from VB");
393
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo hello.cs",
_tempDirectory
, s_helloWorldSrcCs);
395
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
406
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"-shared:{serverData.PipeName} /nologo hello.cs",
_tempDirectory
, s_helloWorldSrcCs);
407
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
441
_tempDirectory
,
456
_tempDirectory
,
470
_tempDirectory
,
472
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
484
_tempDirectory
,
486
VerifyResultAndOutput(result,
_tempDirectory
, "Hello from VB");
498
_tempDirectory
,
500
VerifyResultAndOutput(result,
_tempDirectory
, "Hello from VB");
520
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} hello.cs",
_tempDirectory
, files);
526
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "hello.exe")));
549
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /vbruntime* hellovb.vb",
_tempDirectory
, files);
556
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "hello.exe")));
567
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} missingfile.cs",
_tempDirectory
);
573
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "missingfile.exe")));
585
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /r:missing.dll hello.cs",
_tempDirectory
, s_helloWorldSrcCs);
591
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "hello.exe")));
610
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /r:Lib.cs app.cs",
_tempDirectory
, files);
616
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "app.exe")));
628
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /vbruntime* missingfile.vb",
_tempDirectory
);
634
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "missingfile.exe")));
658
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo /vbruntime* /r:missing.dll hellovb.vb",
_tempDirectory
, files);
663
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "hellovb.exe")));
687
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo /vbruntime* /r:Lib.vb app.vb",
_tempDirectory
, files);
692
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "app.exe")));
703
TempDirectory rootDirectory =
_tempDirectory
.CreateDirectory("ReferenceCachingVB");
820
TempDirectory rootDirectory =
_tempDirectory
.CreateDirectory("ReferenceCachingCS");
1014
var libDirectory =
_tempDirectory
.CreateDirectory("LibraryDir");
1031
_tempDirectory
, files);
1047
result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"hello1.cs /shared:{serverData.PipeName} /nologo /r:lib.dll /out:hello1.exe",
_tempDirectory
, files,
1053
var resultFile = Temp.AddFile(GetResultFile(
_tempDirectory
, "hello1.exe"));
1063
var libDirectory =
_tempDirectory
.CreateDirectory("LibraryDir");
1082
_tempDirectory
, files);
1099
result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"hello1.vb /shared:{serverData.PipeName} /nologo /vbruntime* /r:lib.dll /out:hello1.exe",
_tempDirectory
, files,
1105
var resultFile = Temp.AddFile(GetResultFile(
_tempDirectory
, "hello1.exe"));
1115
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
1121
_tempDirectory
,
1137
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText(@"♕").Path;
1138
var tempOut =
_tempDirectory
.CreateFile("output.txt");
1144
_tempDirectory
,
1164
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
1170
_tempDirectory
,
1186
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText(@"♕").Path;
1193
_tempDirectory
,
1213
_tempDirectory
.CreateFile("mscorlib20.dll").WriteAllBytes(Net20.Resources.mscorlib);
1214
_tempDirectory
.CreateFile("mscorlib40.dll").WriteAllBytes(Net40.Resources.mscorlib);
1233
_tempDirectory
, files);
1238
Temp.AddFile(GetResultFile(
_tempDirectory
, "ref_mscorlib2.dll"));
1256
_tempDirectory
, files);
1271
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
1272
var rspFile =
_tempDirectory
.CreateFile("temp.rsp").WriteAllText(
1278
_tempDirectory
,
1295
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
1296
var rspFile =
_tempDirectory
.CreateFile("temp.rsp").WriteAllText(
1302
_tempDirectory
,
1319
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, "/shared /keepalive",
_tempDirectory
, shouldRunOnServer: false);
1329
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, "/shared /keepalive:goo",
_tempDirectory
, shouldRunOnServer: false);
1339
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, "/shared /keepalive:-100",
_tempDirectory
, shouldRunOnServer: false);
1349
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, "/shared /keepalive:9999999999",
_tempDirectory
, shouldRunOnServer: false);
1361
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("").Path;
1363
_tempDirectory
.CreateDirectory("Temp");
1364
var tmp = Path.Combine(
_tempDirectory
.Path, "Temp");
1369
_tempDirectory
,
1379
_tempDirectory
,
1395
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText("").Path;
1397
_tempDirectory
.CreateDirectory("Temp");
1398
var tmp = Path.Combine(
_tempDirectory
.Path, "Temp");
1403
_tempDirectory
,
1414
_tempDirectory
);