1 write to _tempDirectory
VBCSCompiler.UnitTests (1)
CompilerServerTests.cs (1)
70
_tempDirectory
= Temp.CreateDirectory();
87 references to _tempDirectory
VBCSCompiler.UnitTests (87)
CompilerServerTests.cs (87)
290
var newTempDir =
_tempDirectory
.CreateDirectory(new string('a', 100 -
_tempDirectory
.Path.Length));
299
_tempDirectory
,
302
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
315
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo hello.cs",
_tempDirectory
, s_helloWorldSrcCs, shouldRunOnServer: false);
316
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
330
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo hello.cs",
_tempDirectory
, files, redirectEncoding: Encoding.ASCII, shouldRunOnServer: false);
341
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
348
_tempDirectory
,
363
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText("♕").Path;
370
_tempDirectory
,
387
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText("♕").Path;
394
_tempDirectory
,
414
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo /vbruntime* hello.vb",
_tempDirectory
, s_helloWorldSrcVb, shouldRunOnServer: false);
415
VerifyResultAndOutput(result,
_tempDirectory
, "Hello from VB");
426
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo hello.cs",
_tempDirectory
, s_helloWorldSrcCs);
428
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
439
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"-shared:{serverData.PipeName} /nologo hello.cs",
_tempDirectory
, s_helloWorldSrcCs);
440
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
474
_tempDirectory
,
489
_tempDirectory
,
503
_tempDirectory
,
505
VerifyResultAndOutput(result,
_tempDirectory
, "Hello, world.");
517
_tempDirectory
,
519
VerifyResultAndOutput(result,
_tempDirectory
, "Hello from VB");
531
_tempDirectory
,
533
VerifyResultAndOutput(result,
_tempDirectory
, "Hello from VB");
553
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} hello.cs",
_tempDirectory
, files);
559
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "hello.exe")));
582
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /vbruntime* hellovb.vb",
_tempDirectory
, files);
589
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "hello.exe")));
600
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} missingfile.cs",
_tempDirectory
);
606
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "missingfile.exe")));
618
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /r:missing.dll hello.cs",
_tempDirectory
, s_helloWorldSrcCs);
624
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "hello.exe")));
643
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"/shared:{serverData.PipeName} /r:Lib.cs app.cs",
_tempDirectory
, files);
649
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "app.exe")));
661
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /vbruntime* missingfile.vb",
_tempDirectory
);
667
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "missingfile.exe")));
691
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo /vbruntime* /r:missing.dll hellovb.vb",
_tempDirectory
, files);
696
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "hellovb.exe")));
720
var result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"/shared:{serverData.PipeName} /nologo /vbruntime* /r:Lib.vb app.vb",
_tempDirectory
, files);
725
Assert.False(File.Exists(Path.Combine(
_tempDirectory
.Path, "app.exe")));
736
TempDirectory rootDirectory =
_tempDirectory
.CreateDirectory("ReferenceCachingVB");
853
TempDirectory rootDirectory =
_tempDirectory
.CreateDirectory("ReferenceCachingCS");
1047
var libDirectory =
_tempDirectory
.CreateDirectory("LibraryDir");
1064
_tempDirectory
, files);
1080
result = RunCommandLineCompiler(CSharpCompilerClientExecutable, $"hello1.cs /shared:{serverData.PipeName} /nologo /r:lib.dll /out:hello1.exe",
_tempDirectory
, files,
1086
var resultFile = Temp.AddFile(GetResultFile(
_tempDirectory
, "hello1.exe"));
1096
var libDirectory =
_tempDirectory
.CreateDirectory("LibraryDir");
1115
_tempDirectory
, files);
1132
result = RunCommandLineCompiler(BasicCompilerClientExecutable, $"hello1.vb /shared:{serverData.PipeName} /nologo /vbruntime* /r:lib.dll /out:hello1.exe",
_tempDirectory
, files,
1138
var resultFile = Temp.AddFile(GetResultFile(
_tempDirectory
, "hello1.exe"));
1148
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
1154
_tempDirectory
,
1170
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText(@"♕").Path;
1171
var tempOut =
_tempDirectory
.CreateFile("output.txt");
1177
_tempDirectory
,
1197
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
1203
_tempDirectory
,
1219
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText(@"♕").Path;
1226
_tempDirectory
,
1246
_tempDirectory
.CreateFile("mscorlib20.dll").WriteAllBytes(Net20.Resources.mscorlib);
1247
_tempDirectory
.CreateFile("mscorlib40.dll").WriteAllBytes(Net40.Resources.mscorlib);
1266
_tempDirectory
, files);
1271
Temp.AddFile(GetResultFile(
_tempDirectory
, "ref_mscorlib2.dll"));
1289
_tempDirectory
, files);
1304
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
1305
var rspFile =
_tempDirectory
.CreateFile("temp.rsp").WriteAllText(
1311
_tempDirectory
,
1328
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("♕").Path;
1329
var rspFile =
_tempDirectory
.CreateFile("temp.rsp").WriteAllText(
1335
_tempDirectory
,
1352
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, "/shared /keepalive",
_tempDirectory
, shouldRunOnServer: false);
1362
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, "/shared /keepalive:goo",
_tempDirectory
, shouldRunOnServer: false);
1372
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, "/shared /keepalive:-100",
_tempDirectory
, shouldRunOnServer: false);
1382
var result = RunCommandLineCompiler(CSharpCompilerClientExecutable, "/shared /keepalive:9999999999",
_tempDirectory
, shouldRunOnServer: false);
1394
var srcFile =
_tempDirectory
.CreateFile("test.cs").WriteAllText("").Path;
1396
_tempDirectory
.CreateDirectory("Temp");
1397
var tmp = Path.Combine(
_tempDirectory
.Path, "Temp");
1402
_tempDirectory
,
1412
_tempDirectory
,
1428
var srcFile =
_tempDirectory
.CreateFile("test.vb").WriteAllText("").Path;
1430
_tempDirectory
.CreateDirectory("Temp");
1431
var tmp = Path.Combine(
_tempDirectory
.Path, "Temp");
1436
_tempDirectory
,
1447
_tempDirectory
);