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