618 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)
21972var 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 (15)
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();
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 (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 2141Dim dir = Temp.CreateDirectory() 2351Dim dir = Temp.CreateDirectory() 2398Dim folder = Temp.CreateDirectory() 2462Dim folder = Temp.CreateDirectory() 2591Dim dir = Temp.CreateDirectory() 2608Dim dir = Temp.CreateDirectory() 2626Dim dir = Temp.CreateDirectory() 2648Dim dir = Temp.CreateDirectory() 2682Dim dir = Temp.CreateDirectory() 2729Dim dir = Temp.CreateDirectory() 2781Dim dir = Temp.CreateDirectory() 2812Dim dir = Temp.CreateDirectory() 3173Dim dir = Temp.CreateDirectory() 3206Dim dir = Temp.CreateDirectory() 3351Dim dir = Temp.CreateDirectory() 3565Dim parentDir = Temp.CreateDirectory() 3577Dim parentDir = Temp.CreateDirectory() 3588Dim parentDir = Temp.CreateDirectory() 3596Dim parentDir = Temp.CreateDirectory() 3609Dim dir = Temp.CreateDirectory() 3660Using dir As New DisposableDirectory(Temp) 3666Using dir As New DisposableDirectory(Temp) 3672Using dir As New DisposableDirectory(Temp) 3678Using dir As New DisposableDirectory(Temp) 3685Using dir As New DisposableDirectory(Temp) 3691Using dir As New DisposableDirectory(Temp) 3697Using dir As New DisposableDirectory(Temp) 4090Dim dir = Temp.CreateDirectory() 4117Dim dir = Temp.CreateDirectory() 4168Dim dir = Temp.CreateDirectory() 4249Dim dir = Temp.CreateDirectory() 4268Dim dir = Temp.CreateDirectory() 4287Dim dir = Temp.CreateDirectory() 4306Dim dir = Temp.CreateDirectory() 4325Dim dir = Temp.CreateDirectory() 4344Dim dir = Temp.CreateDirectory() 4941Dim binaryPath = Temp.CreateFile().WriteAllBytes(Net461.Resources.mscorlib).Path 4999Dim tempFolder = Temp.CreateDirectory() 5005Dim src = Temp.CreateFile("a.vb") 5023Dim tempFolder = Temp.CreateDirectory() 5027Dim src = Temp.CreateFile("a.vb") 5069Dim dir = Temp.CreateDirectory() 5136Dim dir = Temp.CreateDirectory() 5182Dim dir = Temp.CreateDirectory() 5250Dim dir = Temp.CreateDirectory() 5295Dim dir = Temp.CreateDirectory() 5338Dim file = Temp.CreateDirectory().CreateFile("vb.rsp") 5725Dim dir = Temp.CreateDirectory() 5869Dim dir = Temp.CreateDirectory() 5921Dim dir = Temp.CreateDirectory() 5974Dim dir = Temp.CreateDirectory() 6011Dim dir = Temp.CreateDirectory() 6061Dim dir = Temp.CreateDirectory() 6105Dim dir = Temp.CreateDirectory() 6153Dim dir = Temp.CreateDirectory() 6199Dim dir = Temp.CreateDirectory() 6241Dim dir = Temp.CreateDirectory() 6276Dim dir = Temp.CreateDirectory() 6308Dim dir = Temp.CreateDirectory() 6342Dim dir = Temp.CreateDirectory() 6376Dim dir = Temp.CreateDirectory() 6408Dim dir = Temp.CreateDirectory() 6432Dim dir = Temp.CreateDirectory() 6454Dim dir = Temp.CreateDirectory() 6769Dim dir = Temp.CreateDirectory() 6851Dim folder = Temp.CreateDirectory() 6877Dim source As String = Temp.CreateFile().WriteAllText(<text> 6887Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 6926Dim source As String = Temp.CreateFile().WriteAllText(<text> 6935Dim 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> 7032Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7052Dim source As String = Temp.CreateFile().WriteAllText(<text> 7120Return Temp.CreateFile().WriteAllBytes(GetType(CommandLineTests).Assembly.GetManifestResourceStream("vbc.rsp").ReadAllBytes()).Path 7214Dim source As String = Temp.CreateFile().WriteAllText(<text> 7238Dim source As String = Temp.CreateFile().WriteAllText(<text> 7275Dim source As String = Temp.CreateFile().WriteAllText(<text> 7430Dim source As String = Temp.CreateFile().WriteAllText(<text> 7475Dim dir = Temp.CreateDirectory() 7579Dim dir = Temp.CreateDirectory() 7635Dim dir = Temp.CreateDirectory() 7699Dim dir = Temp.CreateDirectory() 7765Dim baseDir = Temp.CreateDirectory() 7956Dim dir = Temp.CreateDirectory() 7989Dim dir = Temp.CreateDirectory() 8254Dim dir = Temp.CreateDirectory() 8276Dim dir = Temp.CreateDirectory() 8493Dim dir = Temp.CreateDirectory() 8570Dim dir = Temp.CreateDirectory() 8625Dim dir = Temp.CreateDirectory() 8674Dim dir = Temp.CreateDirectory() 8692Dim dir = Temp.CreateDirectory() 8713Dim dir = Temp.CreateDirectory() 8734Dim dir = Temp.CreateDirectory() 8755Dim dir = Temp.CreateDirectory() 8776Dim dir = Temp.CreateDirectory() 8797Dim dir = Temp.CreateDirectory() 8819Dim dir = Temp.CreateDirectory() 8840Dim dir = Temp.CreateDirectory() 8861Dim dir = Temp.CreateDirectory() 8886Dim dir = Temp.CreateDirectory() 8916Dim source As String = Temp.CreateFile().WriteAllText(<text> 8973Dim source As String = Temp.CreateFile().WriteAllText(<text> 8996Dim source As String = Temp.CreateFile().WriteAllText(<text> 9020Dim source As String = Temp.CreateFile().WriteAllText(<text> 9041Dim source As String = Temp.CreateFile().WriteAllText(<text> 9062Dim dir = Temp.CreateDirectory() 9116Dim dir = Temp.CreateDirectory() 9293Dim folderName = Temp.CreateDirectory().ToString() 9309Dim dir = Temp.CreateDirectory() 9385Dim dir = Temp.CreateDirectory() 9424Dim dir = Temp.CreateDirectory() 9531Dim dir = Temp.CreateDirectory() 9546Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9565Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9585Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9606Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().Path) 9646Dim dir = Temp.CreateDirectory() 9669Dim dir = Temp.CreateDirectory() 9692Dim tempDir = Temp.CreateDirectory() 9693Dim workingDir = Temp.CreateDirectory() 9703Return Temp.CreateFile(directory:=directory, prefix:="", extension:=".vb").WriteAllText(" 9713Dim filePath = Temp.CreateFile().WriteAllText("").Path 9743Dim dir = Temp.CreateDirectory() 9787Dim dir = Temp.CreateDirectory() 9832Dim dir = Temp.CreateDirectory() 9857Dim dir = Temp.CreateDirectory() 9923Dim dir = Temp.CreateDirectory() 9961Dim dir = Temp.CreateDirectory() 10008Dim dir = Temp.CreateDirectory() 10060Dim dir = Temp.CreateDirectory() 10109Dim dir = Temp.CreateDirectory() 10146Dim dir = Temp.CreateDirectory() 10184Dim dir = Temp.CreateDirectory() 10249Dim dir = Temp.CreateDirectory() 10296Dim dir = Temp.CreateDirectory() 10329Dim dir = Temp.CreateDirectory() 10362Dim dir = Temp.CreateDirectory() 10380Dim srcDirectory = Temp.CreateDirectory() 10464Dim dir = Temp.CreateDirectory() 10495Dim directory = Temp.CreateDirectory() 10526Dim dir = Temp.CreateDirectory() 10551Dim dir = Temp.CreateDirectory() 10573Dim dir = Temp.CreateDirectory() 10600Dim dir = Temp.CreateDirectory() 10663Dim dir = Temp.CreateDirectory() 10690Dim dir = Temp.CreateDirectory() 10735Dim dir = Temp.CreateDirectory() 10778Dim dir = Temp.CreateDirectory() 10840Dim 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();