623 references to Temp
InteractiveHost.UnitTests (30)
InteractiveHostCoreInitTests.cs (2)
55var dll = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSInterfaces01); 56var srcDir = Temp.CreateDirectory();
InteractiveHostDesktopInitTests.cs (2)
28var dll = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSInterfaces01); 29var srcDir = Temp.CreateDirectory();
InteractiveHostDesktopTests.cs (26)
182var file = Temp.CreateFile().WriteAllText(MethodWithInfiniteLoop + "\r\nfoo();").Path; 201var file = Temp.CreateFile().WriteAllText("1 1").Path; 224var file = Temp.CreateFile().WriteAllText(@" 270var file = Temp.CreateFile().WriteAllText("#load blah.csx" + "\r\n" + "class C {}"); 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(); 572var dir = Temp.CreateDirectory(); 686var directory1 = Temp.CreateDirectory(); 690var initDirectory = Temp.CreateDirectory(); 699var rspDirectory = Temp.CreateDirectory(); 734var initDirectory = Temp.CreateDirectory(); 738var rspDirectory = Temp.CreateDirectory(); 754var rspFile = Temp.CreateFile(); 810var initFile = Temp.CreateFile(extension: ".csx").WriteAllText("1 1"); 812var rspFile = Temp.CreateFile(); 838var scriptFile = Temp.CreateFile(extension: ".csx").WriteAllText("foreach (var arg in Args) Print(arg);"); 840var rspFile = Temp.CreateFile(); 909var dir = Temp.CreateDirectory(); 942var libFile = Temp.CreateFile("lib").WriteAllBytes(lib.EmitToArray()); 1022var rspFile = Temp.CreateFile();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
DotNetSdkTests.cs (1)
25var sourcePackageDir = Temp.CreateDirectory().CreateDirectory("a=b, c");
TargetTests.cs (1)
796var intermediatePathDir = Temp.CreateDirectory();
TestUtilities\DotNetSdkTestBase.cs (1)
161ProjectDir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (67)
CommandLineIVTTests.cs (4)
24var dir = Temp.CreateDirectory(); 101var dir = Temp.CreateDirectory(); 179var dir = Temp.CreateDirectory(); 262var dir = Temp.CreateDirectory();
CommandLineTestBase.cs (1)
31SdkDirectory = getSdkDirectory(Temp);
CommandLineTests.cs (23)
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(); 447string rsp = Temp.CreateFile().WriteAllText(@" 469var parentDir = Temp.CreateDirectory(); 564var parentDir = Temp.CreateDirectory(); 577var dir = Temp.CreateDirectory(); 619var folder = Temp.CreateDirectory(); 657var folder = Temp.CreateDirectory(); 675var folder = Temp.CreateDirectory(); 875string tmpFileName = Temp.CreateFile().WriteAllBytes(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }).Path; 1223var dir = Temp.CreateDirectory(); 1874var dir = Temp.CreateDirectory(); 2241var dir = Temp.CreateDirectory(); 2273var dir = Temp.CreateDirectory(); 2301var dir = Temp.CreateDirectory(); 2428var dir = Temp.CreateDirectory();
SarifErrorLoggerTests.cs (18)
41var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 42var errorLogDir = Temp.CreateDirectory(); 72var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 73var errorLogDir = Temp.CreateDirectory(); 106var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 107var errorLogDir = Temp.CreateDirectory(); 138var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 139var outputDir = Temp.CreateDirectory(); 175var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 176var errorLogDir = Temp.CreateDirectory(); 210var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 211var errorLogDir = Temp.CreateDirectory(); 245var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 246var errorLogDir = Temp.CreateDirectory(); 280var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 281var errorLogDir = Temp.CreateDirectory(); 313var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 314var errorLogDir = Temp.CreateDirectory();
SarifV2ErrorLoggerTests.cs (8)
445var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 446var errorLogDir = Temp.CreateDirectory(); 524var sourceDir = Temp.CreateDirectory(); 528var errorLogDir = Temp.CreateDirectory(); 597var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 598var errorLogDir = Temp.CreateDirectory(); 667var errorLogDir = Temp.CreateDirectory(); 668var mappedDir = Temp.CreateDirectory();
TouchedFileLoggingTests.cs (13)
38var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 39var touchedDir = Temp.CreateDirectory(); 66var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 67var touchedDir = Temp.CreateDirectory(); 69var appConfigPath = Temp.CreateFile().WriteAllText( 79var silverlight = Temp.CreateFile().WriteAllBytes(Silverlight.System).Path; 80var net4_0dll = Temp.CreateFile().WriteAllBytes(Net461.Resources.System).Path; 112var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 113var snkPath = Temp.CreateFile("TestKeyPair_", ".snk").WriteAllBytes(TestResources.General.snKey).Path; 114var touchedDir = Temp.CreateDirectory(); 147var sourcePath = Temp.CreateFile().WriteAllText(@" 152var xml = Temp.CreateFile(); 153var touchedDir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
1134var analyzerConfigPath = PathUtilities.CombineAbsoluteAndRelativePaths(Temp.CreateDirectory().Path, ".editorconfig"); 1379var analyzerConfigDocFilePath = PathUtilities.CombineAbsoluteAndRelativePaths(Temp.CreateDirectory().Path, ".editorconfig");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
Emit\CompilationEmitTests.cs (2)
1996var snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey); 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();
Emit\ResourceTests.cs (3)
43var exe = Temp.CreateFile(); 133var exe = Temp.CreateFile(); 833var exeFile = Temp.CreateFile();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBTests.cs (1)
12879using (var outStream = Temp.CreateFile().Open())
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Attributes\AttributeTests_Security.cs (3)
1477var tempDir = Temp.CreateDirectory(); 1568var tempDir = Temp.CreateDirectory(); 1605var tempDir = Temp.CreateDirectory();
Attributes\EmitTestStrongNameProvider.cs (1)
32var keyFile = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey).Path;
Attributes\InternalsVisibleToAndStrongNameTests.cs (18)
54_signingTempDirectory = Temp.CreateDirectory(); 380var tempFile = Temp.CreateFile().WriteAllBytes(new byte[] { 1, 2, 3, 4 }); 533var snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey); 606var snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey); 628var pubKeyFile = Temp.CreateFile().WriteAllBytes(TestResources.General.snPublicKey); 650var pubKeyFile = Temp.CreateFile().WriteAllBytes(TestResources.General.snPublicKey); 715var snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey); 736var snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey); 1504var tempFile = Temp.CreateFile(); 1530var tempFile = Temp.CreateFile(); 2515var tempFile = Temp.CreateFile(); 2542var tempFile = Temp.CreateFile(); 2573var tempFile = Temp.CreateFile(); 2603var tempFile = Temp.CreateFile(); 2633var tempFile = Temp.CreateFile(); 2658var tempFile = Temp.CreateFile(); 2688var tempFile = Temp.CreateFile(); 2872var tempFile = Temp.CreateFile();
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (19)
InteractiveSessionReferencesTests.cs (19)
343var c1 = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.General.C1); 344var c2 = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.General.C2); 359var c1 = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.General.C1); 360var c2 = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.General.C2); 376var c1 = Temp.CreateFile(extension: ".dll").WriteAllBytes( 379var c2 = Temp.CreateFile(extension: ".dll").WriteAllBytes( 395var c1 = Temp.CreateFile(extension: ".dll").WriteAllBytes( 398var c2 = Temp.CreateFile(extension: ".dll").WriteAllBytes( 415var c1 = Temp.CreateFile(extension: ".dll").WriteAllBytes( 418var c2 = Temp.CreateFile(extension: ".dll").WriteAllBytes( 623var root = Temp.CreateDirectory(); 681var root = Temp.CreateDirectory(); 747var root = Temp.CreateDirectory(); 815var root = Temp.CreateDirectory(); 883var root = Temp.CreateDirectory(); 951var root = Temp.CreateDirectory(); 1019var root = Temp.CreateDirectory(); 1087var root = Temp.CreateDirectory(); 1120var libFile = Temp.CreateFile("lib").WriteAllBytes(lib.EmitToArray());
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (35)
CommandLineRunnerTests.cs (26)
264var script = Temp.CreateFile(extension: ".csx").WriteAllText("foreach (var arg in Args) Print(arg);"); 266var rsp = Temp.CreateFile(extension: ".rsp").WriteAllText($@" 297var script = Temp.CreateFile(extension: ".csx").WriteAllText("foreach (var arg in Args) Print(arg);"); 314var script = Temp.CreateFile(extension: ".csx").WriteAllText("foreach (var arg in Args) Print(arg);"); 331var script = Temp.CreateFile(extension: ".csx").WriteAllText("foreach (var arg in Args) Print(arg);"); 333var rsp = Temp.CreateFile(extension: ".rsp").WriteAllText($@" 363var script = Temp.CreateFile(prefix: "@", extension: ".csx").WriteAllText("foreach (var arg in Args) Print(arg);"); 380var dir = Temp.CreateDirectory(); 446var script = Temp.CreateFile(extension: ".csx").WriteAllText("WriteLine(42);"); 484using (var directory = new DisposableDirectory(Temp)) 527var main = Temp.CreateFile(extension: ".csx").WriteAllText(@" 534var dir1 = Temp.CreateDirectory(); 537var dir2 = Temp.CreateDirectory(); 540var dir3 = Temp.CreateDirectory(); 558var main = Temp.CreateFile(extension: ".csx").WriteAllText(@" 568var dir1 = Temp.CreateDirectory(); 571var dir2 = Temp.CreateDirectory(); 574var dir3 = Temp.CreateDirectory(); 577var dir4 = Temp.CreateDirectory(); 595var dir = Temp.CreateDirectory(); 631var dir = Temp.CreateDirectory(); 667var rsp = Temp.CreateFile().WriteAllText(@" 706var init = Temp.CreateFile(extension: ".csx").WriteAllText(@" 724var reference = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.General.C1); 726var init = Temp.CreateFile(extension: ".csx").WriteAllText(@" 826var root = Temp.CreateDirectory();
InteractiveSessionReferencesTests.cs (3)
38var dir = Temp.CreateDirectory(); 79var dir = Temp.CreateDirectory(); 128var dir = Temp.CreateDirectory();
InteractiveSessionTests.cs (6)
1204var file1 = Temp.CreateFile(); 1205var file2 = Temp.CreateFile(); 1234var file = Temp.CreateFile(); 1252var file = Temp.CreateFile(); 1289var dir = Temp.CreateDirectory(); 1319var dir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
21969var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("&");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (72)
Compilation\GetUnusedImportDirectivesTests.cs (1)
212var snkPath = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey).Path;
Compilation\ReferenceManagerTests.cs (10)
852string p1 = Temp.CreateFile().WriteAllBytes(TestResources.General.MDTestLib1).Path; 923var dir = Temp.CreateDirectory(); 993string p1 = Temp.CreateFile().WriteAllBytes(Net461.Resources.SystemCore).Path; 994string p2 = Temp.CreateFile().CopyContentFrom(p1).Path; 1013var p1 = Temp.CreateFile().WriteAllBytes(Net461.Resources.System).Path; 1014var p2 = Temp.CreateFile().WriteAllBytes(Net20.Resources.System).Path; 1037var dir1 = Temp.CreateDirectory(); 1040var dir2 = Temp.CreateDirectory(); 1270var path1 = Temp.CreateFile().WriteAllBytes(TestResources.General.MDTestLib1).Path; 1271var path2 = Temp.CreateFile().WriteAllBytes(TestResources.General.MDTestLib2).Path;
DocumentationComments\DocumentationCommentCompilerTests.cs (49)
3441var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 3476var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 3514var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 3549var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 3585var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 3643var rootDir = Temp.CreateDirectory(); 3733var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 3804var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 3836var xmlFile = Temp.CreateFile(extension: ".xml"); 3873var xmlFile1 = Temp.CreateFile(extension: ".xml"); 3876var xmlFile2 = Temp.CreateFile(extension: ".xml").WriteAllText(string.Format("<include file='{0}' path='path'/>", xmlFilePath1)); 3909var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("<element/>"); 3943var xmlFile1 = Temp.CreateFile(extension: ".xml").WriteAllText("<element/>"); 3946var xmlFile2 = Temp.CreateFile(extension: ".xml").WriteAllText(string.Format("<include file='{0}' path=':'/>", xmlFilePath1)); 3976var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("<OpenWithoutClose>"); 4010var xmlFile1 = Temp.CreateFile(extension: ".xml").WriteAllText("<OpenWithoutClose>"); 4013var xmlFile2 = Temp.CreateFile(extension: ".xml").WriteAllText(string.Format("<include file='{0}' path='path'/>", xmlFilePath1)); 4043var xmlFile = Temp.CreateFile(extension: ".xml"); 4075var xmlFile = Temp.CreateFile(extension: ".xml"); 4109var xmlFile = Temp.CreateFile(extension: ".xml"); 4163var xmlFile = Temp.CreateFile(extension: ".xml"); 4202var xmlFile1 = Temp.CreateFile(extension: ".xml"); 4205var xmlFile2 = Temp.CreateFile(extension: ".xml"); 4241var xmlFile = Temp.CreateFile(extension: ".xml"); 4318var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<see cref=""Main""/>"); 4353var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<see cref=""M:Verbatim""/>"); 4388var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<see cref=""Int32""/>"); 4435var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<see cref=""#""/>"); 4476var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<see cref=""Invalid""/>"); 4530var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(seeElement); 4575var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(seeElement); 4652var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 4732var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 4803var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 4847var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<typeparam name=""#""/>"); 4885var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<param name=""Q""/>"); 4926var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<param name=""x""/>"); 4962var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(@"<param name=""x"" name=""y""/>"); 5004var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 5074var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 5243var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("<stuff />"); 5957var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("&"); 7212var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 7301var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("<hello/>"); 7324var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("<hello/>"); 7343var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("<hello/>"); 7381var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText( 7444var xmlFile = Temp.CreateFile(extension: ".xml"); 7599var dir = Temp.CreateDirectory();
DocumentationComments\DocumentationModeTests.cs (1)
368var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml);
Symbols\CompilationCreationTests.cs (9)
2677var data = Temp.CreateFile().WriteAllBytes(Net461.Resources.SystemData).Path; 2678var core = Temp.CreateFile().WriteAllBytes(Net461.Resources.SystemCore).Path; 2679var xml = Temp.CreateFile().WriteAllBytes(Net461.Resources.SystemXml).Path; 2680var system = Temp.CreateFile().WriteAllBytes(Net461.Resources.System).Path; 2722var data = Temp.CreateFile().WriteAllBytes(Net461.Resources.SystemData).Path; 2723var core = Temp.CreateFile().WriteAllBytes(Net461.Resources.SystemCore).Path; 2724var system = Temp.CreateFile().WriteAllBytes(Net461.Resources.System).Path; 2774var csClasses01 = Temp.CreateFile().WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSClasses01).Path; 2775var csInterfaces01 = Temp.CreateFile().WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSInterfaces01).Path;
Symbols\Metadata\PE\TypeForwarders.cs (2)
1556var folder = Temp.CreateDirectory(); 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 (17)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (15)
62var dir = Temp.CreateDirectory(); 197var moduleFile = Temp.CreateFile().WriteAllBytes(TestResources.Basic.Members); 307var moduleFile = Temp.CreateFile().WriteAllBytes(TestResources.Basic.Members); 383var dir = Temp.CreateDirectory(); 481var moduleFile = Temp.CreateFile(); 564var dir = Temp.CreateDirectory(); 615var dir = Temp.CreateDirectory(); 673var sourceFileA = Temp.CreateFile().WriteAllText(sourceA, Encoding.UTF8); 674var sourceFileB = Temp.CreateFile().WriteAllText(sourceB, Encoding.UTF8); 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.Scripting.Desktop.UnitTests (9)
MetadataShadowCopyProviderTests.cs (9)
84var dir = Temp.CreateDirectory(); 103var dll = Temp.CreateFile().WriteAllText("blah"); 124var dll = Temp.CreateFile("a.dll").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSClasses01); 139var dir = Temp.CreateDirectory(); 186var f0 = Temp.CreateFile().WriteAllText("bogus").Path; 189string f1 = Temp.CreateFile().WriteAllBytes(TestResources.SymbolsTests.MultiModule.MultiModuleDll).Path; 196var dir = Temp.CreateDirectory(); 209var dir2 = Temp.CreateDirectory(); 223var dir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.Scripting.UnitTests (1)
RuntimeMetadataReferenceResolverTests.cs (1)
24using (var directory = new DisposableDirectory(Temp))
Microsoft.CodeAnalysis.UnitTests (46)
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 (1)
163var dir = Temp.CreateDirectory();
MetadataReferences\AssemblyIdentityComparerTests.cs (1)
616var appConfig = Temp.CreateFile().WriteAllText(
MetadataReferences\AssemblyMetadataTests.cs (2)
58var dir = Temp.CreateDirectory(); 141var invalidModuleName = Temp.CreateFile().WriteAllBytes(TestResources.MetadataTests.Invalid.InvalidModuleName);
MetadataReferences\AssemblyPortabilityPolicyTests.cs (18)
74var appConfig = Temp.CreateFile(); 112var appConfig = Temp.CreateFile(); 134var appConfig1 = Temp.CreateFile(); 135var appConfig2 = Temp.CreateFile(); 167var appConfig = Temp.CreateFile(); 215var appConfig = Temp.CreateFile(); 233var appConfig = Temp.CreateFile(); 251var appConfig = Temp.CreateFile(); 269var appConfig = Temp.CreateFile(); 287var appConfig = Temp.CreateFile(); 306var appConfig = Temp.CreateFile(); 326var appConfig = Temp.CreateFile(); 350var appConfig = Temp.CreateFile(); 370var appConfig = Temp.CreateFile(); 387var appConfig = Temp.CreateFile().WriteAllText(correctAppConfigText); 400var appConfig = Temp.CreateFile().WriteAllText(correctAppConfigText); 412appConfig = Temp.CreateFile().WriteAllText(correctAppConfigText); 430var appConfig2 = Temp.CreateFile().WriteAllText(correctAppConfigText);
MetadataReferences\MetadataReferenceTests.cs (3)
95var file = Temp.CreateFile().WriteAllBytes(Net461.Resources.mscorlib); 161var file = Temp.CreateFile().WriteAllBytes(peImage); 185var file = Temp.CreateFile().WriteAllBytes(peImage);
Text\StringTextDecodingTests.cs (3)
218string path = Temp.CreateFile().WriteAllBytes(encoding.GetBytes(expectedText)).Path; 304var tmpFile = Temp.CreateFile(); 320var tmpFile = Temp.CreateFile();
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (220)
CommandLineBreakingChanges.vb (11)
16Dim src As String = Temp.CreateFile().WriteAllText(" 26Dim tempBinary = Temp.CreateFile() 27Dim tempLog = Temp.CreateFile() 48Dim src As String = Temp.CreateFile().WriteAllText(<text> 58Dim tempOut = Temp.CreateFile() 80Dim src As String = Temp.CreateFile().WriteAllText(<text> 90Dim tempOut = Temp.CreateFile() 112Dim src As String = Temp.CreateFile().WriteAllText(<text> 122Dim tempOut = Temp.CreateFile() 147Dim src As String = Temp.CreateFile().WriteAllText(<text> 157Dim tempOut = Temp.CreateFile()
CommandLineIVTTests.vb (5)
24Dim dir = Temp.CreateDirectory() 122Dim dir = Temp.CreateDirectory() 223Dim dir = Temp.CreateDirectory() 333Dim dir = Temp.CreateDirectory() 452Dim dir = Temp.CreateDirectory()
CommandLineTests.vb (188)
66Dim dir = Temp.CreateDirectory() 96Dim dir = Temp.CreateDirectory() 162Dim dir = Temp.CreateDirectory() 195Dim dir = Temp.CreateDirectory() 229Dim dir = Temp.CreateDirectory() 252Dim dir = Temp.CreateDirectory() 283Dim src As String = Temp.CreateFile().WriteAllText(<text> 312Dim folder = Temp.CreateDirectory() 326Dim src As String = Temp.CreateFile().WriteAllText(<text> 347Dim dir = Temp.CreateDirectory() 383Dim dir = Temp.CreateDirectory() 402Dim dir = Temp.CreateDirectory() 421Dim dir = Temp.CreateDirectory() 467Dim src As String = Temp.CreateFile().WriteAllText(<text> 508Dim src As String = Temp.CreateFile().WriteAllText(<text> 526Dim src As String = Temp.CreateFile().WriteAllText(<text> 544Dim src As String = Temp.CreateFile().WriteAllText(<text> 585Dim src As String = Temp.CreateFile().WriteAllText(<text> 609Dim src As String = Temp.CreateFile().WriteAllText("♚", New System.Text.UTF8Encoding(False)).Path 611Dim tempOut = Temp.CreateFile() 628Dim src As String = Temp.CreateFile().WriteAllText("♚", New System.Text.UTF8Encoding(False)).Path 630Dim tempOut = Temp.CreateFile() 648Dim tempDir As String = Temp.CreateDirectory().Path 688Dim tempDir As String = Temp.CreateDirectory().Path 740Dim tempDir As String = Temp.CreateDirectory().Path 751Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 776Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 919Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 991Dim tmpFileName As String = Temp.CreateFile().WriteAllBytes(New Byte() {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}).Path 1006Dim source = Temp.CreateFile(prefix:="", extension:=".vb").WriteAllText(" 1011Dim badres = Temp.CreateFile().WriteAllBytes(New Byte() {0, 0}).Path 2147Dim dir = Temp.CreateDirectory() 2357Dim dir = Temp.CreateDirectory() 2404Dim folder = Temp.CreateDirectory() 2468Dim folder = Temp.CreateDirectory() 2597Dim dir = Temp.CreateDirectory() 2614Dim dir = Temp.CreateDirectory() 2632Dim dir = Temp.CreateDirectory() 2654Dim dir = Temp.CreateDirectory() 2688Dim dir = Temp.CreateDirectory() 2735Dim dir = Temp.CreateDirectory() 2787Dim dir = Temp.CreateDirectory() 2818Dim dir = Temp.CreateDirectory() 3179Dim dir = Temp.CreateDirectory() 3212Dim dir = Temp.CreateDirectory() 3357Dim dir = Temp.CreateDirectory() 3571Dim parentDir = Temp.CreateDirectory() 3583Dim parentDir = Temp.CreateDirectory() 3594Dim parentDir = Temp.CreateDirectory() 3602Dim parentDir = Temp.CreateDirectory() 3615Dim dir = Temp.CreateDirectory() 3666Using dir As New DisposableDirectory(Temp) 3672Using dir As New DisposableDirectory(Temp) 3678Using dir As New DisposableDirectory(Temp) 3684Using dir As New DisposableDirectory(Temp) 3691Using dir As New DisposableDirectory(Temp) 3697Using dir As New DisposableDirectory(Temp) 3703Using dir As New DisposableDirectory(Temp) 4096Dim dir = Temp.CreateDirectory() 4123Dim dir = Temp.CreateDirectory() 4174Dim dir = Temp.CreateDirectory() 4255Dim dir = Temp.CreateDirectory() 4274Dim dir = Temp.CreateDirectory() 4293Dim dir = Temp.CreateDirectory() 4312Dim dir = Temp.CreateDirectory() 4331Dim dir = Temp.CreateDirectory() 4350Dim dir = Temp.CreateDirectory() 4947Dim binaryPath = Temp.CreateFile().WriteAllBytes(Net461.Resources.mscorlib).Path 5005Dim tempFolder = Temp.CreateDirectory() 5011Dim src = Temp.CreateFile("a.vb") 5029Dim tempFolder = Temp.CreateDirectory() 5033Dim src = Temp.CreateFile("a.vb") 5046Dim tempFolder = Temp.CreateDirectory() 5050Dim src = Temp.CreateFile("a.vb") 5103Dim dir = Temp.CreateDirectory() 5170Dim dir = Temp.CreateDirectory() 5216Dim dir = Temp.CreateDirectory() 5284Dim dir = Temp.CreateDirectory() 5329Dim dir = Temp.CreateDirectory() 5372Dim file = Temp.CreateDirectory().CreateFile("vb.rsp") 5759Dim dir = Temp.CreateDirectory() 5903Dim dir = Temp.CreateDirectory() 5955Dim dir = Temp.CreateDirectory() 6008Dim dir = Temp.CreateDirectory() 6045Dim dir = Temp.CreateDirectory() 6095Dim dir = Temp.CreateDirectory() 6139Dim dir = Temp.CreateDirectory() 6187Dim dir = Temp.CreateDirectory() 6233Dim dir = Temp.CreateDirectory() 6275Dim dir = Temp.CreateDirectory() 6310Dim dir = Temp.CreateDirectory() 6342Dim dir = Temp.CreateDirectory() 6376Dim dir = Temp.CreateDirectory() 6410Dim dir = Temp.CreateDirectory() 6442Dim dir = Temp.CreateDirectory() 6466Dim dir = Temp.CreateDirectory() 6488Dim dir = Temp.CreateDirectory() 6803Dim dir = Temp.CreateDirectory() 6885Dim folder = Temp.CreateDirectory() 6911Dim source As String = Temp.CreateFile().WriteAllText(<text> 6921Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 6960Dim source As String = Temp.CreateFile().WriteAllText(<text> 6969Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 6994Dim source As String = Temp.CreateFile().WriteAllText(<text> 7003Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7028Dim source As String = Temp.CreateFile().WriteAllText(<text> 7037Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7062Dim source As String = Temp.CreateFile().WriteAllText(<text> 7066Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7086Dim source As String = Temp.CreateFile().WriteAllText(<text> 7154Return Temp.CreateFile().WriteAllBytes(GetType(CommandLineTests).Assembly.GetManifestResourceStream("vbc.rsp").ReadAllBytes()).Path 7248Dim source As String = Temp.CreateFile().WriteAllText(<text> 7272Dim source As String = Temp.CreateFile().WriteAllText(<text> 7309Dim source As String = Temp.CreateFile().WriteAllText(<text> 7464Dim source As String = Temp.CreateFile().WriteAllText(<text> 7509Dim dir = Temp.CreateDirectory() 7613Dim dir = Temp.CreateDirectory() 7669Dim dir = Temp.CreateDirectory() 7733Dim dir = Temp.CreateDirectory() 7799Dim baseDir = Temp.CreateDirectory() 7990Dim dir = Temp.CreateDirectory() 8023Dim dir = Temp.CreateDirectory() 8288Dim dir = Temp.CreateDirectory() 8310Dim dir = Temp.CreateDirectory() 8527Dim dir = Temp.CreateDirectory() 8604Dim dir = Temp.CreateDirectory() 8659Dim dir = Temp.CreateDirectory() 8708Dim dir = Temp.CreateDirectory() 8726Dim dir = Temp.CreateDirectory() 8747Dim dir = Temp.CreateDirectory() 8768Dim dir = Temp.CreateDirectory() 8789Dim dir = Temp.CreateDirectory() 8810Dim dir = Temp.CreateDirectory() 8831Dim dir = Temp.CreateDirectory() 8853Dim dir = Temp.CreateDirectory() 8874Dim dir = Temp.CreateDirectory() 8895Dim dir = Temp.CreateDirectory() 8920Dim dir = Temp.CreateDirectory() 8950Dim source As String = Temp.CreateFile().WriteAllText(<text> 9007Dim source As String = Temp.CreateFile().WriteAllText(<text> 9030Dim source As String = Temp.CreateFile().WriteAllText(<text> 9054Dim source As String = Temp.CreateFile().WriteAllText(<text> 9075Dim source As String = Temp.CreateFile().WriteAllText(<text> 9096Dim dir = Temp.CreateDirectory() 9150Dim dir = Temp.CreateDirectory() 9327Dim folderName = Temp.CreateDirectory().ToString() 9343Dim dir = Temp.CreateDirectory() 9419Dim dir = Temp.CreateDirectory() 9458Dim dir = Temp.CreateDirectory() 9565Dim dir = Temp.CreateDirectory() 9580Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9599Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9619Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9640Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9680Dim dir = Temp.CreateDirectory() 9703Dim dir = Temp.CreateDirectory() 9726Dim tempDir = Temp.CreateDirectory() 9727Dim workingDir = Temp.CreateDirectory() 9737Return Temp.CreateFile(directory:=directory, prefix:="", extension:=".vb").WriteAllText(" 9747Dim filePath = Temp.CreateFile().WriteAllText("").Path 9777Dim dir = Temp.CreateDirectory() 9821Dim dir = Temp.CreateDirectory() 9866Dim dir = Temp.CreateDirectory() 9891Dim dir = Temp.CreateDirectory() 9957Dim dir = Temp.CreateDirectory() 9995Dim dir = Temp.CreateDirectory() 10042Dim dir = Temp.CreateDirectory() 10094Dim dir = Temp.CreateDirectory() 10143Dim dir = Temp.CreateDirectory() 10180Dim dir = Temp.CreateDirectory() 10218Dim dir = Temp.CreateDirectory() 10283Dim dir = Temp.CreateDirectory() 10330Dim dir = Temp.CreateDirectory() 10363Dim dir = Temp.CreateDirectory() 10396Dim dir = Temp.CreateDirectory() 10414Dim srcDirectory = Temp.CreateDirectory() 10498Dim dir = Temp.CreateDirectory() 10529Dim directory = Temp.CreateDirectory() 10560Dim dir = Temp.CreateDirectory() 10585Dim dir = Temp.CreateDirectory() 10607Dim dir = Temp.CreateDirectory() 10634Dim dir = Temp.CreateDirectory() 10697Dim dir = Temp.CreateDirectory() 10724Dim dir = Temp.CreateDirectory() 10769Dim dir = Temp.CreateDirectory() 10812Dim dir = Temp.CreateDirectory() 10858Dim dir = Temp.CreateDirectory() 10922Dim directory = Temp.CreateDirectory()
SarifErrorLoggerTests.vb (8)
47Dim hello = Temp.CreateFile().WriteAllText(helloWorldVB).Path 48Dim errorLogDir = Temp.CreateDirectory() 82Dim sourceFilePath = Temp.CreateFile().WriteAllText(source).Path 83Dim errorLogDir = Temp.CreateDirectory() 123Dim sourceFilePath = Temp.CreateFile().WriteAllText(source).Path 124Dim errorLogDir = Temp.CreateDirectory() 161Dim sourceFilePath = Temp.CreateFile().WriteAllText(source).Path 162Dim outputDir = Temp.CreateDirectory()
TouchedFileLoggingTests.vb (8)
34Dim hello = Temp.CreateFile().WriteAllText(_helloWorldCS).Path 35Dim touchedDir = Temp.CreateDirectory() 64Dim hello = Temp.CreateFile().WriteAllText(_helloWorldCS).Path 65Dim snkPath = Temp.CreateFile("TestKeyPair_", ".snk").WriteAllBytes(TestResources.General.snKey).Path 66Dim touchedDir = Temp.CreateDirectory() 99Dim sourcePath = Temp.CreateFile().WriteAllText( 107Dim xml = Temp.CreateFile() 108Dim touchedDir = Temp.CreateDirectory()
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (12)
Attributes\EmitTestStrongNameProvider.vb (1)
23Dim testFileSystem = New TestStrongNameFileSystem(Temp.CreateDirectory().Path) With {
Attributes\InternalsVisibleToAndStrongNameTests.vb (11)
444Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey) 493Dim tmp = Temp.CreateFile().WriteAllBytes(New Byte() {1, 2, 3, 4}) 1412Dim tempFile = Temp.CreateFile() 2041Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey) 2049Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snPublicKey) 2057Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey2) 2065Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snPublicKey2) 2103Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey) 2128Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey) 2142Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey) 2167Dim snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey)
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
CommandLineRunnerTests.vb (1)
54Dim file1 = Temp.CreateFile("1.dll").WriteAllBytes(TestCompilationFactory.CreateVisualBasicCompilationWithCorlib("
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
WorkspaceTestBase.cs (1)
26this.SolutionDirectory = Temp.CreateDirectory();
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (4)
1604var fileD = Temp.CreateFile(); 3291var file = Temp.CreateFile().WriteAllText(text1, Encoding.UTF8); 3345var file = Temp.CreateFile().WriteAllText(text, Encoding.UTF8); 3412var file = Temp.CreateFile().WriteAllText(text, Encoding.UTF8);
WorkspaceTests\AdhocWorkspaceTests.cs (1)
283var analyzerConfigDocFilePath = PathUtilities.CombineAbsoluteAndRelativePaths(Temp.CreateDirectory().Path, ".editorconfig");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (16)
ProjectSystemShim\CPS\AnalyzersTests.cs (3)
26var ruleSetFile = Temp.CreateFile().WriteAllText( 50var ruleSetFile = Temp.CreateFile().WriteAllText( 74var ruleSetFile = Temp.CreateFile();
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (1)
163var newFilePath = Temp.CreateFile().Path;
ProjectSystemShim\LegacyProject\AnalyzersTests.cs (9)
30var ruleSetFile = Temp.CreateFile().WriteAllText( 53var ruleSetFile = Temp.CreateFile(); 67var ruleSetFile = Temp.CreateFile().WriteAllText( 95var ruleSetFile = Temp.CreateFile().WriteAllText( 119var ruleSetFile = Temp.CreateFile().WriteAllText( 143var ruleSetFile = Temp.CreateFile(); 161var ruleSetFile = Temp.CreateFile().WriteAllText( 196var ruleSetFile = Temp.CreateFile().WriteAllText( 232var ruleSetFile = Temp.CreateFile().WriteAllText(ruleSetSource);
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (3)
32var dir = Temp.CreateDirectory(); 73var dir = Temp.CreateDirectory(); 82var dir = Temp.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 (8)
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();
BuildClientTests.cs (2)
40workingDir: Temp.CreateDirectory().Path, 41tempDir: Temp.CreateDirectory().Path);
CompilerServerTests.cs (10)
70_tempDirectory = Temp.CreateDirectory(); 222var tempDir = Temp.CreateDirectory(); 893var hello2exe = Temp.AddFile(hello2_file); 1033var compilationDir = Temp.CreateDirectory(); 1069Temp.AddFile(GetResultFile(libDirectory, "lib.dll")); 1086var resultFile = Temp.AddFile(GetResultFile(_tempDirectory, "hello1.exe")); 1120Temp.AddFile(GetResultFile(libDirectory, "lib.dll")); 1138var resultFile = Temp.AddFile(GetResultFile(_tempDirectory, "hello1.exe")); 1271Temp.AddFile(GetResultFile(_tempDirectory, "ref_mscorlib2.dll")); 1462var dir = Temp.CreateDirectory();
TouchedFileLoggingTests.cs (6)
49var loader = DefaultAnalyzerAssemblyLoader.CreateNonLockingLoader(Temp.CreateDirectory().Path); 58var source1 = Temp.CreateFile().WriteAllText(HelloWorldCS).Path; 59var touchedDir = Temp.CreateDirectory(); 100var loader = DefaultAnalyzerAssemblyLoader.CreateNonLockingLoader(Temp.CreateDirectory().Path); 109var source1 = Temp.CreateFile().WriteAllText(HelloWorldVB).Path; 110var touchedDir = Temp.CreateDirectory();