621 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)
136var dir = Temp.CreateDirectory(); 161var dir = Temp.CreateDirectory(); 185var dir = Temp.CreateDirectory(); 214var dir = Temp.CreateDirectory(); 271var dir = Temp.CreateDirectory(); 330var dir = Temp.CreateDirectory(); 362var dir = Temp.CreateDirectory(); 396var dir = Temp.CreateDirectory(); 416var dir = Temp.CreateDirectory(); 446string rsp = Temp.CreateFile().WriteAllText(@" 468var parentDir = Temp.CreateDirectory(); 563var parentDir = Temp.CreateDirectory(); 576var dir = Temp.CreateDirectory(); 618var folder = Temp.CreateDirectory(); 656var folder = Temp.CreateDirectory(); 674var folder = Temp.CreateDirectory(); 874string tmpFileName = Temp.CreateFile().WriteAllBytes(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }).Path; 1222var dir = Temp.CreateDirectory(); 1873var dir = Temp.CreateDirectory(); 2240var dir = Temp.CreateDirectory(); 2272var dir = Temp.CreateDirectory(); 2300var dir = Temp.CreateDirectory(); 2427var 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)
235var dir = Temp.CreateDirectory();
Emit\CompilationOutputFilesTests.cs (1)
36var dir = Temp.CreateDirectory();
Microsoft.CodeAnalysis.Features.UnitTests (16)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (14)
61var dir = Temp.CreateDirectory(); 196var moduleFile = Temp.CreateFile().WriteAllBytes(TestResources.Basic.Members); 306var moduleFile = Temp.CreateFile().WriteAllBytes(TestResources.Basic.Members); 382var dir = Temp.CreateDirectory(); 480var moduleFile = Temp.CreateFile(); 563var dir = Temp.CreateDirectory(); 614var dir = Temp.CreateDirectory(); 672var sourceFileA = Temp.CreateFile().WriteAllText(sourceA, Encoding.UTF8); 673var sourceFileB = Temp.CreateFile().WriteAllText(sourceB, Encoding.UTF8); 757var dir = Temp.CreateDirectory(); 910var dir = Temp.CreateDirectory(); 1135var dir = Temp.CreateDirectory(); 1236var dir = Temp.CreateDirectory(); 1279var 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 (48)
Analyzers\AnalyzerFileReferenceAppDomainTests.cs (2)
44var dir = Temp.CreateDirectory(); 81var dir = 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 (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 (217)
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 (185)
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 2148Dim dir = Temp.CreateDirectory() 2358Dim dir = Temp.CreateDirectory() 2405Dim folder = Temp.CreateDirectory() 2469Dim folder = Temp.CreateDirectory() 2598Dim dir = Temp.CreateDirectory() 2615Dim dir = Temp.CreateDirectory() 2633Dim dir = Temp.CreateDirectory() 2655Dim dir = Temp.CreateDirectory() 2689Dim dir = Temp.CreateDirectory() 2736Dim dir = Temp.CreateDirectory() 2788Dim dir = Temp.CreateDirectory() 2819Dim dir = Temp.CreateDirectory() 3180Dim dir = Temp.CreateDirectory() 3213Dim dir = Temp.CreateDirectory() 3358Dim dir = Temp.CreateDirectory() 3572Dim parentDir = Temp.CreateDirectory() 3584Dim parentDir = Temp.CreateDirectory() 3595Dim parentDir = Temp.CreateDirectory() 3603Dim parentDir = Temp.CreateDirectory() 3616Dim dir = Temp.CreateDirectory() 3667Using dir As New DisposableDirectory(Temp) 3673Using dir As New DisposableDirectory(Temp) 3679Using dir As New DisposableDirectory(Temp) 3685Using dir As New DisposableDirectory(Temp) 3692Using dir As New DisposableDirectory(Temp) 3698Using dir As New DisposableDirectory(Temp) 3704Using dir As New DisposableDirectory(Temp) 4097Dim dir = Temp.CreateDirectory() 4124Dim dir = Temp.CreateDirectory() 4175Dim dir = Temp.CreateDirectory() 4256Dim dir = Temp.CreateDirectory() 4275Dim dir = Temp.CreateDirectory() 4294Dim dir = Temp.CreateDirectory() 4313Dim dir = Temp.CreateDirectory() 4332Dim dir = Temp.CreateDirectory() 4351Dim dir = Temp.CreateDirectory() 4948Dim binaryPath = Temp.CreateFile().WriteAllBytes(Net461.Resources.mscorlib).Path 5006Dim tempFolder = Temp.CreateDirectory() 5012Dim src = Temp.CreateFile("a.vb") 5030Dim tempFolder = Temp.CreateDirectory() 5034Dim src = Temp.CreateFile("a.vb") 5076Dim dir = Temp.CreateDirectory() 5143Dim dir = Temp.CreateDirectory() 5189Dim dir = Temp.CreateDirectory() 5257Dim dir = Temp.CreateDirectory() 5302Dim dir = Temp.CreateDirectory() 5345Dim file = Temp.CreateDirectory().CreateFile("vb.rsp") 5732Dim dir = Temp.CreateDirectory() 5876Dim dir = Temp.CreateDirectory() 5928Dim dir = Temp.CreateDirectory() 5981Dim dir = Temp.CreateDirectory() 6018Dim dir = Temp.CreateDirectory() 6068Dim dir = Temp.CreateDirectory() 6112Dim dir = Temp.CreateDirectory() 6160Dim dir = Temp.CreateDirectory() 6206Dim dir = Temp.CreateDirectory() 6248Dim dir = Temp.CreateDirectory() 6283Dim dir = Temp.CreateDirectory() 6315Dim dir = Temp.CreateDirectory() 6349Dim dir = Temp.CreateDirectory() 6383Dim dir = Temp.CreateDirectory() 6415Dim dir = Temp.CreateDirectory() 6439Dim dir = Temp.CreateDirectory() 6461Dim dir = Temp.CreateDirectory() 6776Dim dir = Temp.CreateDirectory() 6858Dim folder = Temp.CreateDirectory() 6884Dim source As String = Temp.CreateFile().WriteAllText(<text> 6894Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 6933Dim source As String = Temp.CreateFile().WriteAllText(<text> 6942Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 6967Dim source As String = Temp.CreateFile().WriteAllText(<text> 6976Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7001Dim source As String = Temp.CreateFile().WriteAllText(<text> 7010Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7035Dim source As String = Temp.CreateFile().WriteAllText(<text> 7039Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7059Dim source As String = Temp.CreateFile().WriteAllText(<text> 7127Return Temp.CreateFile().WriteAllBytes(GetType(CommandLineTests).Assembly.GetManifestResourceStream("vbc.rsp").ReadAllBytes()).Path 7221Dim source As String = Temp.CreateFile().WriteAllText(<text> 7245Dim source As String = Temp.CreateFile().WriteAllText(<text> 7282Dim source As String = Temp.CreateFile().WriteAllText(<text> 7437Dim source As String = Temp.CreateFile().WriteAllText(<text> 7482Dim dir = Temp.CreateDirectory() 7586Dim dir = Temp.CreateDirectory() 7642Dim dir = Temp.CreateDirectory() 7706Dim dir = Temp.CreateDirectory() 7772Dim baseDir = Temp.CreateDirectory() 7963Dim dir = Temp.CreateDirectory() 7996Dim dir = Temp.CreateDirectory() 8261Dim dir = Temp.CreateDirectory() 8283Dim dir = Temp.CreateDirectory() 8500Dim dir = Temp.CreateDirectory() 8577Dim dir = Temp.CreateDirectory() 8632Dim dir = Temp.CreateDirectory() 8681Dim dir = Temp.CreateDirectory() 8699Dim dir = Temp.CreateDirectory() 8720Dim dir = Temp.CreateDirectory() 8741Dim dir = Temp.CreateDirectory() 8762Dim dir = Temp.CreateDirectory() 8783Dim dir = Temp.CreateDirectory() 8804Dim dir = Temp.CreateDirectory() 8826Dim dir = Temp.CreateDirectory() 8847Dim dir = Temp.CreateDirectory() 8868Dim dir = Temp.CreateDirectory() 8893Dim dir = Temp.CreateDirectory() 8923Dim source As String = Temp.CreateFile().WriteAllText(<text> 8980Dim source As String = Temp.CreateFile().WriteAllText(<text> 9003Dim source As String = Temp.CreateFile().WriteAllText(<text> 9027Dim source As String = Temp.CreateFile().WriteAllText(<text> 9048Dim source As String = Temp.CreateFile().WriteAllText(<text> 9069Dim dir = Temp.CreateDirectory() 9123Dim dir = Temp.CreateDirectory() 9300Dim folderName = Temp.CreateDirectory().ToString() 9316Dim dir = Temp.CreateDirectory() 9392Dim dir = Temp.CreateDirectory() 9431Dim dir = Temp.CreateDirectory() 9538Dim dir = Temp.CreateDirectory() 9553Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9572Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9592Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9613Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9653Dim dir = Temp.CreateDirectory() 9676Dim dir = Temp.CreateDirectory() 9699Dim tempDir = Temp.CreateDirectory() 9700Dim workingDir = Temp.CreateDirectory() 9710Return Temp.CreateFile(directory:=directory, prefix:="", extension:=".vb").WriteAllText(" 9720Dim filePath = Temp.CreateFile().WriteAllText("").Path 9750Dim dir = Temp.CreateDirectory() 9794Dim dir = Temp.CreateDirectory() 9839Dim dir = Temp.CreateDirectory() 9864Dim dir = Temp.CreateDirectory() 9930Dim dir = Temp.CreateDirectory() 9968Dim dir = Temp.CreateDirectory() 10015Dim dir = Temp.CreateDirectory() 10067Dim dir = Temp.CreateDirectory() 10116Dim dir = Temp.CreateDirectory() 10153Dim dir = Temp.CreateDirectory() 10191Dim dir = Temp.CreateDirectory() 10256Dim dir = Temp.CreateDirectory() 10303Dim dir = Temp.CreateDirectory() 10336Dim dir = Temp.CreateDirectory() 10369Dim dir = Temp.CreateDirectory() 10387Dim srcDirectory = Temp.CreateDirectory() 10471Dim dir = Temp.CreateDirectory() 10502Dim directory = Temp.CreateDirectory() 10533Dim dir = Temp.CreateDirectory() 10558Dim dir = Temp.CreateDirectory() 10580Dim dir = Temp.CreateDirectory() 10607Dim dir = Temp.CreateDirectory() 10670Dim dir = Temp.CreateDirectory() 10697Dim dir = Temp.CreateDirectory() 10742Dim dir = Temp.CreateDirectory() 10785Dim dir = Temp.CreateDirectory() 10847Dim 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();