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