1 type derived from TempDirectory
Microsoft.CodeAnalysis.Test.Utilities (1)
TempFiles\DisposableDirectory.cs (1)
12public sealed class DisposableDirectory : TempDirectory, IDisposable
1 instantiation of TempDirectory
Microsoft.CodeAnalysis.Test.Utilities (1)
TempFiles\TempDirectory.cs (1)
93return new TempDirectory(dirPath, _root);
291 references to TempDirectory
InteractiveHost.UnitTests (22)
AbstractInteractiveHostTests.cs (1)
194TempDirectory dir, string fileName, string assemblyName, string source, params MetadataReference[] references)
InteractiveHostCoreInitTests.cs (1)
56var srcDir = Temp.CreateDirectory();
InteractiveHostDesktopInitTests.cs (1)
29var srcDir = Temp.CreateDirectory();
InteractiveHostDesktopTests.cs (19)
366var dir = Temp.CreateDirectory(); 433var dir = Temp.CreateDirectory(); 453var dir1 = Temp.CreateDirectory(); 454var dir2 = Temp.CreateDirectory(); 455var dir3 = Temp.CreateDirectory(); 481var dir = Temp.CreateDirectory(); 500var dir = Temp.CreateDirectory(); 537var dir = Temp.CreateDirectory(); 539var dir1 = dir.CreateDirectory("1"); 540var dir2 = dir.CreateDirectory("2"); 572var dir = Temp.CreateDirectory(); 574var dir1 = dir.CreateDirectory("1"); 575var dir2 = dir.CreateDirectory("2"); 686var directory1 = Temp.CreateDirectory(); 690var initDirectory = Temp.CreateDirectory(); 699var rspDirectory = Temp.CreateDirectory(); 734var initDirectory = Temp.CreateDirectory(); 738var rspDirectory = Temp.CreateDirectory(); 909var dir = Temp.CreateDirectory();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (16)
CopyRefAssemblyTests.cs (5)
30var dir = TempRoot.CreateDirectory(); 45var dir = TempRoot.CreateDirectory(); 63var dir = TempRoot.CreateDirectory(); 83var dir = TempRoot.CreateDirectory(); 110var dir = TempRoot.CreateDirectory();
DotNetSdkTests.cs (7)
25var sourcePackageDir = Temp.CreateDirectory().CreateDirectory("a=b, c"); 411var subdir = ProjectDir.CreateDirectory("subdir"); 441var subdir = ProjectDir.CreateDirectory("subdir"); 471var subdir = ProjectDir.CreateDirectory("subdir"); 505var subdir = ProjectDir.CreateDirectory("subdir"); 538var subdir = ProjectDir.CreateDirectory("subdir"); 602var subdir = ProjectDir.CreateDirectory("subdir");
TargetTests.cs (1)
796var intermediatePathDir = Temp.CreateDirectory();
TestUtilities\DotNetSdkTestBase.cs (3)
52protected readonly TempDirectory ProjectDir; 53protected readonly TempDirectory ObjDir; 54protected readonly TempDirectory OutDir;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (60)
CommandLineIVTTests.cs (4)
24var dir = Temp.CreateDirectory(); 101var dir = Temp.CreateDirectory(); 179var dir = Temp.CreateDirectory(); 262var dir = Temp.CreateDirectory();
CommandLineTestBase.cs (1)
40var dir = temp.CreateDirectory();
CommandLineTests.cs (36)
137var dir = Temp.CreateDirectory(); 162var dir = Temp.CreateDirectory(); 186var dir = Temp.CreateDirectory(); 215var dir = Temp.CreateDirectory(); 272var dir = Temp.CreateDirectory(); 331var dir = Temp.CreateDirectory(); 363var dir = Temp.CreateDirectory(); 397var dir = Temp.CreateDirectory(); 417var dir = Temp.CreateDirectory(); 469var parentDir = Temp.CreateDirectory(); 470var baseDir = parentDir.CreateDirectory("temp"); 471var dirX = baseDir.CreateDirectory("x"); 472var dirAB = baseDir.CreateDirectory("a b"); 473var dirSubDir = baseDir.CreateDirectory("subdir"); 474var dirGoo = parentDir.CreateDirectory("goo"); 475var dirBar = parentDir.CreateDirectory("bar"); 564var parentDir = Temp.CreateDirectory(); 577var dir = Temp.CreateDirectory(); 619var folder = Temp.CreateDirectory(); 657var folder = Temp.CreateDirectory(); 675var folder = Temp.CreateDirectory(); 680var folderA = folder.CreateDirectory("A"); 685var folderB = folder.CreateDirectory("B"); 739private void CreateFile(TempDirectory folder, string file) 1223var dir = Temp.CreateDirectory(); 1874var dir = Temp.CreateDirectory(); 2241var dir = Temp.CreateDirectory(); 2273var dir = Temp.CreateDirectory(); 2301var dir = Temp.CreateDirectory(); 2428var dir = Temp.CreateDirectory(); 2476private static void ValidateEmbeddedSources_Portable(Dictionary<string, string> expectedEmbeddedMap, TempDirectory dir, bool isEmbeddedPdb) 2507private static void ValidateEmbeddedSources_Windows(Dictionary<string, string> expectedEmbeddedMap, TempDirectory dir) 9285TempDirectory tempParentDir = Temp.CreateDirectory(); 9286TempDirectory tempDir = tempParentDir.CreateDirectory("tmpDir"); 10551private string VerifyOutput(TempDirectory sourceDir, TempFile sourceFile, 11617void AssertPdbEmit(TempDirectory dir, string pdbPath, string pePdbPath, params string[] extraArgs)
SarifErrorLoggerTests.cs (9)
42var errorLogDir = Temp.CreateDirectory(); 73var errorLogDir = Temp.CreateDirectory(); 107var errorLogDir = Temp.CreateDirectory(); 139var outputDir = Temp.CreateDirectory(); 176var errorLogDir = Temp.CreateDirectory(); 211var errorLogDir = Temp.CreateDirectory(); 246var errorLogDir = Temp.CreateDirectory(); 281var errorLogDir = Temp.CreateDirectory(); 314var errorLogDir = Temp.CreateDirectory();
SarifV2ErrorLoggerTests.cs (6)
446var errorLogDir = Temp.CreateDirectory(); 524var sourceDir = Temp.CreateDirectory(); 528var errorLogDir = Temp.CreateDirectory(); 598var errorLogDir = Temp.CreateDirectory(); 667var errorLogDir = Temp.CreateDirectory(); 668var mappedDir = Temp.CreateDirectory();
TouchedFileLoggingTests.cs (4)
39var touchedDir = Temp.CreateDirectory(); 67var touchedDir = Temp.CreateDirectory(); 114var touchedDir = Temp.CreateDirectory(); 153var touchedDir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
Emit\CompilationEmitTests.cs (1)
4632var tmpDir = Temp.CreateDirectory();
Emit\DesktopStrongNameProviderTests.cs (7)
22var tempDir = Temp.CreateDirectory(); 37var tempDir = Temp.CreateDirectory(); 47var tempDir = Temp.CreateDirectory(); 57var tempDir = Temp.CreateDirectory(); 67var tempDir = Temp.CreateDirectory(); 77var tempDir = Temp.CreateDirectory(); 92var tempDir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_Security.cs (3)
1477var tempDir = Temp.CreateDirectory(); 1568var tempDir = Temp.CreateDirectory(); 1605var tempDir = Temp.CreateDirectory();
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
30private readonly TempDirectory _signingTempDirectory;
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (24)
InteractiveSessionReferencesTests.cs (24)
623var root = Temp.CreateDirectory(); 624var dir1 = root.CreateDirectory("1"); 628var dir2 = root.CreateDirectory("2"); 681var root = Temp.CreateDirectory(); 682var dir1 = root.CreateDirectory("1"); 686var dir2 = root.CreateDirectory("2"); 747var root = Temp.CreateDirectory(); 748var dir1 = root.CreateDirectory("1"); 752var dir2 = root.CreateDirectory("2"); 815var root = Temp.CreateDirectory(); 816var dir1 = root.CreateDirectory("1"); 820var dir2 = root.CreateDirectory("2"); 883var root = Temp.CreateDirectory(); 884var dir1 = root.CreateDirectory("1"); 888var dir2 = root.CreateDirectory("2"); 951var root = Temp.CreateDirectory(); 952var dir1 = root.CreateDirectory("1"); 956var dir2 = root.CreateDirectory("2"); 1019var root = Temp.CreateDirectory(); 1020var dir1 = root.CreateDirectory("1"); 1024var dir2 = root.CreateDirectory("2"); 1087var root = Temp.CreateDirectory(); 1088var dir1 = root.CreateDirectory("1"); 1092var dir2 = root.CreateDirectory("2");
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (20)
CommandLineRunnerTests.cs (13)
380var dir = Temp.CreateDirectory(); 534var dir1 = Temp.CreateDirectory(); 537var dir2 = Temp.CreateDirectory(); 540var dir3 = Temp.CreateDirectory(); 568var dir1 = Temp.CreateDirectory(); 571var dir2 = Temp.CreateDirectory(); 574var dir3 = Temp.CreateDirectory(); 577var dir4 = Temp.CreateDirectory(); 595var dir = Temp.CreateDirectory(); 631var dir = Temp.CreateDirectory(); 826var root = Temp.CreateDirectory(); 827var dir1 = root.CreateDirectory("1"); 831var dir2 = root.CreateDirectory("2");
InteractiveSessionReferencesTests.cs (5)
38var dir = Temp.CreateDirectory(); 79var dir = Temp.CreateDirectory(); 83var dir1 = dir.CreateDirectory("1"); 84var dir2 = dir.CreateDirectory("2"); 128var dir = Temp.CreateDirectory();
InteractiveSessionTests.cs (2)
1289var dir = Temp.CreateDirectory(); 1319var dir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Compilation\ReferenceManagerTests.cs (3)
923var dir = Temp.CreateDirectory(); 1037var dir1 = Temp.CreateDirectory(); 1040var dir2 = Temp.CreateDirectory();
DocumentationComments\DocumentationCommentCompilerTests.cs (5)
3643var rootDir = Temp.CreateDirectory(); 3645var dir1 = rootDir.CreateDirectory("d1"); 3648var dir2 = rootDir.CreateDirectory("d2"); 3651var dir3 = rootDir.CreateDirectory("d3"); 7599var dir = Temp.CreateDirectory();
Symbols\Metadata\PE\TypeForwarders.cs (4)
1556var folder = Temp.CreateDirectory(); 1557var folderA = folder.CreateDirectory("A"); 1558var folderB = folder.CreateDirectory("B"); 1726var folder = Temp.CreateDirectory();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
237var dir = Temp.CreateDirectory();
Emit\CompilationOutputFilesTests.cs (1)
36var dir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.Features.UnitTests (12)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (10)
62var dir = Temp.CreateDirectory(); 383var dir = Temp.CreateDirectory(); 564var dir = Temp.CreateDirectory(); 615var dir = Temp.CreateDirectory(); 758var dir = Temp.CreateDirectory(); 911var dir = Temp.CreateDirectory(); 1136var dir = Temp.CreateDirectory(); 1237var dir = Temp.CreateDirectory(); 1280var dir = Temp.CreateDirectory(); 1341var dir = Temp.CreateDirectory();
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
31var dir = Temp.CreateDirectory();
EditAndContinue\WatchHotReloadServiceTests.cs (1)
42var dir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.LanguageServer.UnitTests (3)
LspFileChangeWatcherTests.cs (2)
57var tempDirectory = TempRoot.CreateDirectory(); 87var tempDirectory = TempRoot.CreateDirectory();
Utilities\AbstractLanguageServerHostTests.cs (1)
19protected TempDirectory MefCacheDirectory { get; }
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (5)
MetadataShadowCopyProviderTests.cs (5)
84var dir = Temp.CreateDirectory(); 139var dir = Temp.CreateDirectory(); 196var dir = Temp.CreateDirectory(); 209var dir2 = Temp.CreateDirectory(); 223var dir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.Test.Utilities (15)
AssemblyLoadTestFixture.cs (13)
21private readonly TempDirectory _directory; 220var v2Directory = _directory.CreateDirectory("Version2"); 222var v2PublicSignedDirectory = _directory.CreateDirectory("Version2PublicSigned"); 303var v2BDirectory = _directory.CreateDirectory("Version2B"); 322var v3Directory = _directory.CreateDirectory("Version3"); 341var sciUserDirectory = _directory.CreateDirectory("SCIUser"); 388var analyzerReferencesDelta1Directory = _directory.CreateDirectory("AnalyzerReferencesDelta1"); 405var faultyAnalyzerDirectory = _directory.CreateDirectory("FaultyAnalyzer"); 417var analyzerWithDependencyDirectory = _directory.CreateDirectory("AnalyzerWithDependency"); 459var analyzerWithFakeCompilerDependencyDirectory = _directory.CreateDirectory("AnalyzerWithFakeCompilerDependency"); 487var analyzerWithLaterFakeCompileDirectory = _directory.CreateDirectory("AnalyzerWithLaterFakeCompilerDependency"); 516private static string GenerateDll(string assemblyName, TempDirectory directory, string csSource, params MetadataReference[] additionalReferences) 521private static string GenerateDll(string assemblyName, TempDirectory directory, string csSource, ImmutableArray<byte> publicKeyOpt, params MetadataReference[] additionalReferences)
TempFiles\TempDirectory.cs (1)
89public TempDirectory CreateDirectory(string name)
TempFiles\TempRoot.cs (1)
53public TempDirectory CreateDirectory()
Microsoft.CodeAnalysis.UnitTests (40)
AnalyzerAssemblyLoaderTests.cs (18)
342var tempDir = temp.CreateDirectory(); 563var tempDir = temp.CreateDirectory(); 673var tempDir = temp.CreateDirectory(); 679var tempSubDir = tempDir.CreateDirectory("b"); 728var tempDir = temp.CreateDirectory(); 1048var tempDir = temp.CreateDirectory(); 1049var tempDir1 = tempDir.CreateDirectory("a"); 1050var tempDir2 = tempDir.CreateDirectory("b"); 1310var dir = temp.CreateDirectory(); 1490var tempDir = temp.CreateDirectory(); 1515var tempDir = temp.CreateDirectory(); 1544var tempDir = temp.CreateDirectory(); 1547var tempDir1 = tempDir.CreateDirectory("a"); 1548var tempDir2 = tempDir.CreateDirectory("b"); 1549var tempDir3 = tempDir.CreateDirectory("c"); 1605var tempDir = temp.CreateDirectory(); 1640var tempDir = temp.CreateDirectory(); 1663var tempDir = temp.CreateDirectory();
Analyzers\AnalyzerFileReferenceTests.cs (6)
198var directory = Temp.CreateDirectory(); 230var directory = Temp.CreateDirectory(); 308var directory = Temp.CreateDirectory(); 337var directory = Temp.CreateDirectory(); 444var directory = Temp.CreateDirectory(); 481var directory = Temp.CreateDirectory();
AssemblyUtilitiesTests.cs (6)
44var directory = Temp.CreateDirectory(); 56var directory = Temp.CreateDirectory(); 69var directory = Temp.CreateDirectory(); 82var directory = Temp.CreateDirectory(); 95var directory = Temp.CreateDirectory(); 109var directory = Temp.CreateDirectory();
CommonCommandLineParserTests.cs (6)
33var dir = Temp.CreateDirectory(); 470var dir = Temp.CreateDirectory(); 979var dir = Temp.CreateDirectory(); 1010var dir = Temp.CreateDirectory(); 1043var dir = Temp.CreateDirectory(); 1092var dir = Temp.CreateDirectory();
FileSystem\RelativePathResolverTests.cs (3)
163var dir = Temp.CreateDirectory(); 164var dir1 = dir.CreateDirectory("dir1"); 165var dir2 = dir.CreateDirectory("dir2");
MetadataReferences\AssemblyMetadataTests.cs (1)
58var dir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
3398Private Shared Sub ValidateEmbeddedSources_Portable(expectedEmbeddedMap As Dictionary(Of String, String), dir As TempDirectory, isEmbeddedPdb As Boolean) 3426Private Shared Sub ValidateEmbeddedSources_Windows(expectedEmbeddedMap As Dictionary(Of String, String), dir As TempDirectory) 3634Sub(dir As TempDirectory, pePdbPath As String, extraArgs As String()) 7925Private Shared Function VerifyOutput(sourceDir As TempDirectory, sourceFile As TempFile,
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
NetCoreTests.cs (1)
25private readonly TempDirectory _nugetCacheDir;
WorkspaceTestBase.cs (2)
20protected readonly TempDirectory SolutionDirectory; 46var dir = SolutionDirectory;
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
22var tempDirectory = tempRoot.CreateDirectory();
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
1031var tempDirectory = tempRoot.CreateDirectory();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (8)
PersistentStorage\AbstractPersistentStorageTests.cs (4)
44private readonly TempDirectory _persistentFolder; 132var folder = folderRoot.CreateDirectory(PersistentFolderPrefix + "'" + Guid.NewGuid()); 974protected Solution CreateOrOpenSolution(TempDirectory? persistentFolder = null, bool nullPaths = false) 1004TempDirectory? persistentFolder = null,
ProjectSystemShim\TempPECompilerServiceTests.cs (1)
25var directory = tempRoot.CreateDirectory();
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (3)
32var dir = Temp.CreateDirectory(); 73var dir = Temp.CreateDirectory(); 82var dir = Temp.CreateDirectory();
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\SnapshotSerializationTests.cs (2)
479var dir = temp.CreateDirectory(); 565var tempDir = tempRoot.CreateDirectory();
SemanticSearch.BuildTask.UnitTests (3)
GenerateFilteredReferenceAssembliesTaskTests.cs (3)
112var dir = Temp.CreateDirectory(); 157var dir = Temp.CreateDirectory(); 197var dir = Temp.CreateDirectory();
VBCSCompiler.UnitTests (26)
AnalyzerConsistencyCheckerTests.cs (9)
44private TempFile CreateNetStandardDll(TempDirectory directory, string assemblyName, string version, ImmutableArray<byte> publicKey, string? extraSource = null) 85var directory = Temp.CreateDirectory(); 97var directory = Temp.CreateDirectory(); 112var directory = Temp.CreateDirectory(); 137var directory = Temp.CreateDirectory(); 178var directory = Temp.CreateDirectory(); 200var directory = Temp.CreateDirectory(); 222var directory = Temp.CreateDirectory(); 236var directory = Temp.CreateDirectory();
CompilerServerTests.cs (15)
65private readonly TempDirectory _tempDirectory; 98private static void ReferenceNetstandardDllIfCoreClr(TempDirectory currentDirectory, List<string> arguments) 108private static void CreateFiles(TempDirectory currentDirectory, IEnumerable<KeyValuePair<string, string>> files) 179TempDirectory currentDirectory, 222var tempDir = Temp.CreateDirectory(); 255private static DisposableFile GetResultFile(TempDirectory directory, string resultFileName) 275private void VerifyResultAndOutput((int ExitCode, string Output) result, TempDirectory path, string expectedOutput) 290var newTempDir = _tempDirectory.CreateDirectory(new string('a', 100 - _tempDirectory.Path.Length)); 736TempDirectory rootDirectory = _tempDirectory.CreateDirectory("ReferenceCachingVB"); 853TempDirectory rootDirectory = _tempDirectory.CreateDirectory("ReferenceCachingCS"); 962private Task<DisposableFile> RunCompilationAsync(RequestLanguage language, string pipeName, int i, TempDirectory compilationDir) 1033var compilationDir = Temp.CreateDirectory(); 1047var libDirectory = _tempDirectory.CreateDirectory("LibraryDir"); 1096var libDirectory = _tempDirectory.CreateDirectory("LibraryDir"); 1462var dir = Temp.CreateDirectory();
TouchedFileLoggingTests.cs (2)
59var touchedDir = Temp.CreateDirectory(); 110var touchedDir = Temp.CreateDirectory();