288 references to CreateFile
InteractiveHost.UnitTests (13)
InteractiveHostCoreInitTests.cs (1)
55var dll = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSInterfaces01);
InteractiveHostDesktopInitTests.cs (1)
28var dll = Temp.CreateFile(extension: ".dll").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSInterfaces01);
InteractiveHostDesktopTests.cs (11)
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 {}"); 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(); 942var libFile = Temp.CreateFile("lib").WriteAllBytes(lib.EmitToArray()); 1022var rspFile = Temp.CreateFile();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (22)
CommandLineTests.cs (2)
447string rsp = Temp.CreateFile().WriteAllText(@" 875string tmpFileName = Temp.CreateFile().WriteAllBytes(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }).Path;
SarifErrorLoggerTests.cs (9)
41var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 72var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 106var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 138var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 175var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 210var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 245var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 280var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 313var sourceFile = Temp.CreateFile().WriteAllText(source).Path;
SarifV2ErrorLoggerTests.cs (2)
445var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 597var sourceFile = Temp.CreateFile().WriteAllText(source).Path;
TouchedFileLoggingTests.cs (9)
38var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 66var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 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; 147var sourcePath = Temp.CreateFile().WriteAllText(@" 152var xml = Temp.CreateFile();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Emit\CompilationEmitTests.cs (1)
1996var snk = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey);
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 (18)
Attributes\EmitTestStrongNameProvider.cs (1)
32var keyFile = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey).Path;
Attributes\InternalsVisibleToAndStrongNameTests.cs (17)
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 (11)
InteractiveSessionReferencesTests.cs (11)
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( 1120var libFile = Temp.CreateFile("lib").WriteAllBytes(lib.EmitToArray());
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (18)
CommandLineRunnerTests.cs (14)
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);"); 446var script = Temp.CreateFile(extension: ".csx").WriteAllText("WriteLine(42);"); 527var main = Temp.CreateFile(extension: ".csx").WriteAllText(@" 558var main = Temp.CreateFile(extension: ".csx").WriteAllText(@" 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(@"
InteractiveSessionTests.cs (4)
1204var file1 = Temp.CreateFile(); 1205var file2 = Temp.CreateFile(); 1234var file = Temp.CreateFile(); 1252var file = Temp.CreateFile();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
21969var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("&");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (65)
Compilation\GetUnusedImportDirectivesTests.cs (1)
212var snkPath = Temp.CreateFile().WriteAllBytes(TestResources.General.snKey).Path;
Compilation\ReferenceManagerTests.cs (7)
852string p1 = Temp.CreateFile().WriteAllBytes(TestResources.General.MDTestLib1).Path; 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; 1270var path1 = Temp.CreateFile().WriteAllBytes(TestResources.General.MDTestLib1).Path; 1271var path2 = Temp.CreateFile().WriteAllBytes(TestResources.General.MDTestLib2).Path;
DocumentationComments\DocumentationCommentCompilerTests.cs (47)
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); 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");
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;
Microsoft.CodeAnalysis.Features.UnitTests (5)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (5)
197var moduleFile = Temp.CreateFile().WriteAllBytes(TestResources.Basic.Members); 307var moduleFile = Temp.CreateFile().WriteAllBytes(TestResources.Basic.Members); 481var moduleFile = Temp.CreateFile(); 673var sourceFileA = Temp.CreateFile().WriteAllText(sourceA, Encoding.UTF8); 674var sourceFileB = Temp.CreateFile().WriteAllText(sourceB, Encoding.UTF8);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (4)
MetadataShadowCopyProviderTests.cs (4)
103var dll = Temp.CreateFile().WriteAllText("blah"); 124var dll = Temp.CreateFile("a.dll").WriteAllBytes(TestResources.MetadataTests.InterfaceAndClass.CSClasses01); 186var f0 = Temp.CreateFile().WriteAllText("bogus").Path; 189string f1 = Temp.CreateFile().WriteAllBytes(TestResources.SymbolsTests.MultiModule.MultiModuleDll).Path;
Microsoft.CodeAnalysis.UnitTests (26)
MetadataReferences\AssemblyIdentityComparerTests.cs (1)
616var appConfig = Temp.CreateFile().WriteAllText(
MetadataReferences\AssemblyMetadataTests.cs (1)
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 (64)
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()
CommandLineTests.vb (44)
283Dim src As String = Temp.CreateFile().WriteAllText(<text> 326Dim src As String = Temp.CreateFile().WriteAllText(<text> 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() 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 4947Dim binaryPath = Temp.CreateFile().WriteAllBytes(Net461.Resources.mscorlib).Path 5011Dim src = Temp.CreateFile("a.vb") 5033Dim src = Temp.CreateFile("a.vb") 5050Dim src = Temp.CreateFile("a.vb") 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> 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> 9737Return Temp.CreateFile(directory:=directory, prefix:="", extension:=".vb").WriteAllText(" 9747Dim filePath = Temp.CreateFile().WriteAllText("").Path
SarifErrorLoggerTests.vb (4)
47Dim hello = Temp.CreateFile().WriteAllText(helloWorldVB).Path 82Dim sourceFilePath = Temp.CreateFile().WriteAllText(source).Path 123Dim sourceFilePath = Temp.CreateFile().WriteAllText(source).Path 161Dim sourceFilePath = Temp.CreateFile().WriteAllText(source).Path
TouchedFileLoggingTests.vb (5)
34Dim hello = Temp.CreateFile().WriteAllText(_helloWorldCS).Path 64Dim hello = Temp.CreateFile().WriteAllText(_helloWorldCS).Path 65Dim snkPath = Temp.CreateFile("TestKeyPair_", ".snk").WriteAllBytes(TestResources.General.snKey).Path 99Dim sourcePath = Temp.CreateFile().WriteAllText( 107Dim xml = Temp.CreateFile()
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
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.UnitTests (5)
SolutionTests\SolutionTests.cs (5)
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); 4505var file = root.CreateFile(prefix: "massiveFile", extension: ".cs").WriteAllText("hello");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (14)
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\CPS\CSharpReferencesTests.cs (1)
135var analyzerAssemblyFullPath = tempRoot.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);
Roslyn.VisualStudio.Next.UnitTests (3)
Remote\SnapshotSerializationTests.cs (3)
424var file = tempRoot.CreateFile("shadow", "dll"); 445var file = tempRoot.CreateFile("shadow", "dll"); 698var shadow = tempRoot.CreateFile("shadow", "dll");
VBCSCompiler.UnitTests (2)
TouchedFileLoggingTests.cs (2)
58var source1 = Temp.CreateFile().WriteAllText(HelloWorldCS).Path; 109var source1 = Temp.CreateFile().WriteAllText(HelloWorldVB).Path;