436 references to WriteAllText
InteractiveHost.UnitTests (15)
InteractiveHostCoreInitTests.cs (1)
58srcDir.CreateFile("goo.csx").WriteAllText("ReferencePaths.Add(@\"" + dllDir + "\");");
InteractiveHostDesktopInitTests.cs (1)
31srcDir.CreateFile("goo.csx").WriteAllText("ReferencePaths.Add(@\"" + dllDir + "\");");
InteractiveHostDesktopTests.cs (13)
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 {}"); 693initFile.WriteAllText(@" 704rspFile.WriteAllText($"/lib:{directory1.Path} /r:Assembly2.dll {initFile.Path}"); 736initFile.WriteAllText(@"#r ""Assembly.dll"""); 742rspFile.WriteAllText($"{initFile.Path}"); 755rspFile.WriteAllText(@" 810var initFile = Temp.CreateFile(extension: ".csx").WriteAllText("1 1"); 814rspFile.WriteAllText($@" 838var scriptFile = Temp.CreateFile(extension: ".csx").WriteAllText("foreach (var arg in Args) Print(arg);"); 841rspFile.WriteAllText($@"
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (36)
DotNetSdkTests.cs (25)
26var libFile = sourcePackageDir.CreateFile("lib.cs").WriteAllText("class Lib { public void M() { } }"); 316ProjectDir.CreateFile("Project2.csproj").WriteAllText($@" 410var srcFile = ProjectDir.CreateFile("lib1.cs").WriteAllText("class C { }"); 412var srcFile2 = subdir.CreateFile("lib2.cs").WriteAllText("class D { }"); 413var editorConfigFile2 = subdir.CreateFile(".editorconfig").WriteAllText(@"[*.cs] 440var srcFile = ProjectDir.CreateFile("lib1.cs").WriteAllText("class C { }"); 442var srcFile2 = subdir.CreateFile("lib2.cs").WriteAllText("class D { }"); 443var editorConfigFile2 = subdir.CreateFile(".editorconfig").WriteAllText(@"[*.cs] 468var srcFile = ProjectDir.CreateFile("lib1.cs").WriteAllText("class C { }"); 469var globalConfigFile = ProjectDir.CreateFile(".globalconfig").WriteAllText(@"is_global = true 472var srcFile2 = subdir.CreateFile("lib2.cs").WriteAllText("class D { }"); 473var globalConfigFile2 = subdir.CreateFile(".globalconfig").WriteAllText(@"is_global = true 502var srcFile = ProjectDir.CreateFile("lib1.cs").WriteAllText("class C { }"); 503var globalConfigFile = ProjectDir.CreateFile(".globalconfig").WriteAllText(@"is_global = true 506var srcFile2 = subdir.CreateFile("lib2.cs").WriteAllText("class D { }"); 507var globalConfigFile2 = subdir.CreateFile(".globalconfig").WriteAllText(@"is_global = true 535var srcFile = ProjectDir.CreateFile("lib1.cs").WriteAllText("class C { }"); 536var globalConfigFile = ProjectDir.CreateFile(".globalconfig").WriteAllText(@"is_global = true 539var srcFile2 = subdir.CreateFile("lib2.cs").WriteAllText("class D { }"); 540var globalConfigFile2 = subdir.CreateFile(".globalconfig").WriteAllText(@"is_global = true 599var srcFile = ProjectDir.CreateFile("lib1.cs").WriteAllText("class C { }"); 600var globalConfigFile = ProjectDir.CreateFile(".globalconfig").WriteAllText(@"is_global = true 603var globalConfigFile2 = subdir.CreateFile(".globalconfig").WriteAllText(@"is_global = true 629var srcFile = ProjectDir.CreateFile("lib1.cs").WriteAllText("class C { }"); 630var globalConfigFile = ProjectDir.CreateFile("mycustom.config").WriteAllText(@"is_global = true
IntegrationTests.cs (6)
81file.WriteAllText(pair.Value); 619var slnFile = testDir.CreateFile("Console;!@(goo)'^(Application1.sln").WriteAllText( 648var appProjFile = appDir.CreateFile(@"Cons.ole;!@(goo)'^(Application1.csproj").WriteAllText( 698var appProgramFile = appDir.CreateFile("Program.cs").WriteAllText( 716var libraryProjFile = libraryDir.CreateFile("Class;!@(goo)'^(Library1.csproj").WriteAllText( 772var libraryClassFile = libraryDir.CreateFile("Class1.cs").WriteAllText(
TestUtilities\DotNetSdkTestBase.cs (5)
166Project = ProjectDir.CreateFile(ProjectFileName).WriteAllText(s_projectSource); 167ProjectDir.CreateFile("TestClass.cs").WriteAllText(s_classSource); 170ProjectDir.CreateFile("Directory.Build.props").WriteAllText("<Project/>"); 171ProjectDir.CreateFile("Directory.Build.targets").WriteAllText("<Project/>"); 172ProjectDir.CreateFile(".editorconfig").WriteAllText("root = true");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (55)
CommandLineIVTTests.cs (4)
26var source2 = dir.CreateFile("B.cs").WriteAllText(""" 103var source2 = dir.CreateFile("B.cs").WriteAllText(""" 181var source2 = dir.CreateFile("B.cs").WriteAllText(""" 264var source2 = dir.CreateFile("B.cs").WriteAllText("""
CommandLineTests.cs (31)
138var src = dir.CreateFile("temp.cs").WriteAllText(@" 163var src = dir.CreateFile("temp.cs").WriteAllText("class C {}"); 187var src = dir.CreateFile("test.cs").WriteAllText(@" 192var analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(@" 217var src = dir.CreateFile("Class1.cs").WriteAllText(""" 229var editorconfig = dir.CreateFile(".editorconfig").WriteAllText(""" 273var src = dir.CreateFile("test.cs").WriteAllText(@" 279var analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(@" 332var src = dir.CreateFile("test.cs").WriteAllText(@" 337var analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(@" 364var src = dir.CreateFile("test.cs").WriteAllText(@" 373var analyzerConfig1 = dir.CreateFile("analyzerconfig1").WriteAllText(configText); 374var analyzerConfig2 = dir.CreateFile("analyzerconfig2").WriteAllText(configText); 447string rsp = Temp.CreateFile().WriteAllText(@" 580file.WriteAllText(source); 742f.WriteAllText(""); 1230file1.WriteAllText(""); 1231file2.WriteAllText(""); 1232file3.WriteAllText(""); 1233file4.WriteAllText(""); 1234file5.WriteAllText(""); 2244src.WriteAllText(@"class C { public static void Main() {} }"); 2247sl.WriteAllText(@"{ ""documents"" : {} }"); 2276src.WriteAllText(@"class C { public static void Main() {} }"); 2279sl.WriteAllText(@"{ ""documents"" : {} }"); 2304src.WriteAllText(@"class C { public static void Main() {} }"); 2433src.WriteAllText(embed_cs); 2434src2.WriteAllText(embed2_cs); 2435txt.WriteAllText(embed_xyz); 9287TempFile tempFile = tempDir.CreateFile("a.cs").WriteAllText(@"public class A { }"); 11620var src = dir.CreateFile("a.cs").WriteAllText(source);
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 (6)
445var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 525var sourceFile1 = sourceDir.CreateFile("source1.cs").WriteAllText(source1).Path; 526var sourceFile2 = sourceDir.CreateFile("source2.cs").WriteAllText(source2).Path; 527var editorconfigFile = sourceDir.CreateFile(".editorconfig").WriteAllText(editorconfigText).Path; 597var sourceFile = Temp.CreateFile().WriteAllText(source).Path; 678var sourceFile = errorLogDir.CreateFile("myfile.cs").WriteAllText(source);
TouchedFileLoggingTests.cs (5)
38var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 66var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 69var appConfigPath = Temp.CreateFile().WriteAllText( 112var hello = Temp.CreateFile().WriteAllText(helloWorldCS).Path; 147var sourcePath = Temp.CreateFile().WriteAllText(@"
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Security.cs (2)
1486tempFile.WriteAllText(text); 1575tempFile.WriteAllText(text);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (19)
CommandLineRunnerTests.cs (19)
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);"); 381var script = dir.CreateFile("--").WriteAllText("foreach (var arg in Args) Print(arg);"); 446var script = Temp.CreateFile(extension: ".csx").WriteAllText("WriteLine(42);"); 487var script = directory.CreateFile(scriptName).WriteAllText("Print(3);"); 527var main = Temp.CreateFile(extension: ".csx").WriteAllText(@" 535dir1.CreateFile("1.csx").WriteAllText(@"Print(1);"); 538dir2.CreateFile("2.csx").WriteAllText(@"Print(2);"); 541dir3.CreateFile("3.csx").WriteAllText(@"Print(3);"); 558var main = Temp.CreateFile(extension: ".csx").WriteAllText(@" 596var main = dir.CreateFile("a.csx").WriteAllText("int X = 1;"); 667var rsp = Temp.CreateFile().WriteAllText(@" 706var init = Temp.CreateFile(extension: ".csx").WriteAllText(@" 726var init = Temp.CreateFile(extension: ".csx").WriteAllText(@"
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
21969var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText("&");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (50)
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); 3646var dir1XmlFile = dir1.CreateFile("test.xml").WriteAllText(xml1); 3649var dir2XmlFile = dir2.CreateFile("test.xml").WriteAllText(xml2); 3652var dir3XmlFile = dir3.CreateFile("test.xml").WriteAllText(xml3); 3733var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml); 3804var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(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)); 4046xmlFile.WriteAllText(string.Format(@"<include file=""{0}"" path=""//include""/>", xmlFilePath)); //Includes itself. 4078xmlFile.WriteAllText(string.Format(@"<parent><include file=""{0}"" path=""//parent""/></parent>", xmlFilePath)); //Includes its parent. 4112xmlFile.WriteAllText(string.Format(@" 4171xmlFile.WriteAllText(string.Format(xmlTemplate, xmlFilePath)); 4211xmlFile1.WriteAllText(string.Format(xmlTemplate1, xmlFilePath2)); 4212xmlFile2.WriteAllText(xml2); 4244xmlFile.WriteAllText(@"<?xml version=""1.0""?> 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( 7446xmlFile.WriteAllText(string.Format(xmlTemplate, xmlFilePath)); 7601var xmlFile = dir.CreateFile("---.xml").WriteAllText(@"<summary attrib="""" attrib=""""/>");
DocumentationComments\DocumentationModeTests.cs (1)
368var xmlFile = Temp.CreateFile(extension: ".xml").WriteAllText(xml);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (6)
MetadataShadowCopyProviderTests.cs (6)
86var doc = dir.CreateFile("a.xml").WriteAllText("<hello>"); 103var dll = Temp.CreateFile().WriteAllText("blah"); 186var f0 = Temp.CreateFile().WriteAllText("bogus").Path; 198var doc = dir.CreateFile("a.xml").WriteAllText("<hello>"); 225var docInvariant = dir.CreateFile("a.xml").WriteAllText("Invariant"); 226var docGreek = dir.CreateDirectory(elGR.Name).CreateFile("a.xml").WriteAllText("Greek");
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\IlasmUtilities.cs (1)
109sourceFile.WriteAllText(completeIL);
Microsoft.CodeAnalysis.UnitTests (41)
Analyzers\AnalyzerFileReferenceTests.cs (4)
199var textFile = directory.CreateFile("Goo.txt").WriteAllText("I am the very model of a modern major general.").Path; 231var textFile = directory.CreateFile("Goo.txt").WriteAllText("I am the very model of a modern major general.").Path; 314source.WriteAllText("int x = 0;"); 343source.WriteAllText("int x = 0;");
CommonCommandLineParserTests.cs (11)
35file.WriteAllText(source); 40newFile.WriteAllText(otherSources[i - 1]); 472file.WriteAllText(source); 981file.WriteAllText(source); 983newFile.WriteAllText(source1); 1012file.WriteAllText(source); 1046file.WriteAllText(ruleSetSource); 1049include.WriteAllText(includeSource); 1095file.WriteAllText(ruleSetSource); 1098include1.WriteAllText(includeSource1); 1101include2.WriteAllText(includeSource2);
MetadataReferences\AssemblyIdentityComparerTests.cs (1)
616var appConfig = Temp.CreateFile().WriteAllText(
MetadataReferences\AssemblyPortabilityPolicyTests.cs (25)
78appConfig.WriteAllText("garbage"); 84appConfig.WriteAllText( 93appConfig.WriteAllText( 115appConfig.WriteAllText( 137appConfig1.WriteAllText( 149appConfig2.WriteAllText( 170appConfig.WriteAllText( 178appConfig.WriteAllText( 186appConfig.WriteAllText( 196appConfig.WriteAllText( 216appConfig.WriteAllText( 235appConfig.WriteAllText( 253appConfig.WriteAllText( 270appConfig.WriteAllText( 288appConfig.WriteAllText( 307appConfig.WriteAllText( 327appConfig.WriteAllText( 351appConfig.WriteAllText( 371appConfig.WriteAllText( 387var appConfig = Temp.CreateFile().WriteAllText(correctAppConfigText); 400var appConfig = Temp.CreateFile().WriteAllText(correctAppConfigText); 407appConfig.WriteAllText(correctAppConfigText); 412appConfig = Temp.CreateFile().WriteAllText(correctAppConfigText); 417appConfig.WriteAllText(@" 430var appConfig2 = Temp.CreateFile().WriteAllText(correctAppConfigText);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (176)
CommandLineBreakingChanges.vb (5)
16Dim src As String = Temp.CreateFile().WriteAllText(" 48Dim src As String = Temp.CreateFile().WriteAllText(<text> 80Dim src As String = Temp.CreateFile().WriteAllText(<text> 112Dim src As String = Temp.CreateFile().WriteAllText(<text> 147Dim src As String = Temp.CreateFile().WriteAllText(<text>
CommandLineIVTTests.vb (5)
25Dim source2 = dir.CreateFile("B.vb").WriteAllText(" 123Dim source2 = dir.CreateFile("B.vb").WriteAllText(" 224Dim source2 = dir.CreateFile("B.vb").WriteAllText(" 334Dim source2 = dir.CreateFile("B.vb").WriteAllText(" 453Dim source3 = dir.CreateFile("C.vb").WriteAllText("
CommandLineTests.vb (159)
67Dim src = dir.CreateFile("test.vb").WriteAllText(" 74Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(" 97Dim src = dir.CreateFile("test.vb").WriteAllText(" 104Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(" 163Dim src = dir.CreateFile("test.vb").WriteAllText(" 169Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(" 196Dim src = dir.CreateFile("test.cs").WriteAllText(" 206Dim analyzerConfig1 = dir.CreateFile("analyzerconfig1").WriteAllText(configText) 207Dim analyzerConfig2 = dir.CreateFile("analyzerconfig2").WriteAllText(configText) 230Dim src = dir.CreateFile("temp.vb").WriteAllText(" 253Dim src = dir.CreateFile("temp.cs").WriteAllText(" 283Dim src As String = Temp.CreateFile().WriteAllText(<text> 326Dim src As String = Temp.CreateFile().WriteAllText(<text> 348Dim file = dir.CreateDirectory("Test Path (123)").CreateFile("hellovb.vb").WriteAllText( 385file.WriteAllText(source) 404file.WriteAllText(source) 423file.WriteAllText(source) 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> 751Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 776Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 919Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 1006Dim source = Temp.CreateFile(prefix:="", extension:=".vb").WriteAllText(" 2365file1.WriteAllText("") 2366file2.WriteAllText("") 2367file3.WriteAllText("") 2368file4.WriteAllText("") 2369file5.WriteAllText("") 2413file1.WriteAllText("") 2414file2.WriteAllText("") 2415file3.WriteAllText("") 2416file4.WriteAllText("") 2417file5.WriteAllText("") 2418file6.WriteAllText("") 2601file.WriteAllText(source) 2618file.WriteAllText(source) 2791file.WriteAllText(source) 3183src.WriteAllText(" 3190sl.WriteAllText("{ ""documents"" : {} }") 3216src.WriteAllText(" 3223sl.WriteAllText("{ ""documents"" : {} }") 3363src.WriteAllText(embed_vb) 3364src2.WriteAllText(embed2_vb) 3365txt.WriteAllText(embed_xyz) 3619file.WriteAllText(source) 3646Dim src = dir.CreateFile("a.vb").WriteAllText(source.Value) 4135xml.WriteAllText("EMPTY") 4187xml.WriteAllText("EMPTY") 5013src.WriteAllText("Imports System") 5035src.WriteAllText("Imports System") 5052src.WriteAllText("Imports System") 5374file.WriteAllText("") 5906file1.WriteAllText(source) 5958file.WriteAllText(source.Value) 6011file.WriteAllText(source.Value) 6098file.WriteAllText(source.Value) 6142file.WriteAllText(source.Value) 6190file.WriteAllText(source.Value) 6236file.WriteAllText(source.Value) 6278file.WriteAllText(source.Value) 6313file.WriteAllText(source.Value) 6345file.WriteAllText(source.Value) 6379file.WriteAllText(source.Value) 6413file.WriteAllText(source.Value) 6445file.WriteAllText(source.Value) 6887Dim source As String = folder.CreateFile("src.vb").WriteAllText("").Path 6888Dim ref As String = folder.CreateFile("ref.dll").WriteAllText("").Path 6912Dim source As String = Temp.CreateFile().WriteAllText(<text> 6922Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 6961Dim source As String = Temp.CreateFile().WriteAllText(<text> 6970Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 6995Dim source As String = Temp.CreateFile().WriteAllText(<text> 7004Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7029Dim source As String = Temp.CreateFile().WriteAllText(<text> 7038Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7063Dim source As String = Temp.CreateFile().WriteAllText(<text> 7067Dim rsp As String = Temp.CreateFile().WriteAllText(<text> 7087Dim source As String = Temp.CreateFile().WriteAllText(<text> 7249Dim source As String = Temp.CreateFile().WriteAllText(<text> 7273Dim source As String = Temp.CreateFile().WriteAllText(<text> 7310Dim source As String = Temp.CreateFile().WriteAllText(<text> 7465Dim source As String = Temp.CreateFile().WriteAllText(<text> 7615Dim file = dir.CreateFile("a.vb").WriteAllText(source) 7672file.WriteAllText(<![CDATA[ 7736file.WriteAllText(" 7993file.WriteAllText(source) 8026file.WriteAllText(source) 8291file.WriteAllText(source) 8313file.WriteAllText(source) 8531file.WriteAllText(source) 8607file.WriteAllText(source) 8716Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8736Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8757Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8778Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8799Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8820Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8841Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8863Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8884Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8907Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8930Dim ruleSetFile = dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 8951Dim source As String = Temp.CreateFile().WriteAllText(<text> 9008Dim source As String = Temp.CreateFile().WriteAllText(<text> 9031Dim source As String = Temp.CreateFile().WriteAllText(<text> 9055Dim source As String = Temp.CreateFile().WriteAllText(<text> 9076Dim source As String = Temp.CreateFile().WriteAllText(<text> 9098Dim source = dir.CreateFile("a.vb").WriteAllText(<text> 9103Dim additionalFile = dir.CreateFile("AdditionalFile.txt").WriteAllText(<text> 9108Dim nonCompilerInputFile = dir.CreateFile("DummyFile.txt").WriteAllText(<text> 9153file.WriteAllText(source.Value) 9348src.WriteAllText(" 9424src.WriteAllText( 9462src.WriteAllText( 9568sourceFile.WriteAllText(source.Value) 9738Return Temp.CreateFile(directory:=directory, prefix:="", extension:=".vb").WriteAllText(" 9748Dim filePath = Temp.CreateFile().WriteAllText("").Path 9780file.WriteAllText(source) 9824file.WriteAllText(source) 9869file.WriteAllText(source) 9894file.WriteAllText(source) 9960file.WriteAllText(source) 9998file.WriteAllText(source) 10045file.WriteAllText(source) 10051Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(" 10097file.WriteAllText(source) 10146file.WriteAllText(source) 10182Dim src = dir.CreateFile("test.vb").WriteAllText(" 10220Dim src = dir.CreateFile("test.cs").WriteAllText(" 10285Dim src = dir.CreateFile("test.vb").WriteAllText(" 10295analyzerConfig = dir.CreateFile(".globalconfig").WriteAllText($" 10299analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText($" 10332Dim src = dir.CreateFile("temp.vb").WriteAllText(" 10339Dim globalConfig = dir.CreateFile(".globalconfig").WriteAllText(" 10343Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(" 10365Dim src = dir.CreateFile("temp.vb").WriteAllText(" 10374Dim globalConfig = dir.CreateFile(".globalconfig").WriteAllText($" 10387dir.CreateFile("Rules.ruleset").WriteAllText(ruleSetSource) 10398Dim src = dir.CreateFile("temp.vb").WriteAllText(" 10405Dim globalConfig = dir.CreateFile(".globalconfig").WriteAllText(" 10421srcFile.WriteAllText(source) 10425additionalFile.WriteAllText(additionalText) 10500Dim src = dir.CreateFile("temp.vb").WriteAllText(source) 10504Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText($" 10531Dim src = directory.CreateFile("test.vb").WriteAllText(" 10562Dim src = dir.CreateFile("test.vb").WriteAllText(" 10587Dim src = dir.CreateFile("test.vb").WriteAllText(" 10609Dim src = dir.CreateFile("test.vb").WriteAllText(" 10636Dim src = dir.CreateFile("temp.vb").WriteAllText(" 10699Dim src = dir.CreateFile("temp.vb").WriteAllText(" 10727Dim src = dir.CreateFile("test.vb").WriteAllText(" 10749Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(" 10772Dim src = dir.CreateFile("test.vb").WriteAllText(" 10794Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText(" 10815Dim src = dir.CreateFile("test.vb").WriteAllText(" 10837Dim analyzerConfig = dir.CreateFile(".editorconfig").WriteAllText("
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 (3)
34Dim hello = Temp.CreateFile().WriteAllText(_helloWorldCS).Path 64Dim hello = Temp.CreateFile().WriteAllText(_helloWorldCS).Path 99Dim sourcePath = Temp.CreateFile().WriteAllText(
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
WorkspaceTestBase.cs (1)
58file.WriteAllText(s);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
24tempFile.WriteAllText("class CSharpClass { }");
SolutionTests\SolutionTests.cs (2)
3306file.WriteAllText(text2); 4505var file = root.CreateFile(prefix: "massiveFile", extension: ".cs").WriteAllText("hello");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (12)
PersistentStorage\AbstractPersistentStorageTests.cs (3)
978var solutionFile = persistentFolder.CreateOrOpenFile("Solution1.sln").WriteAllText(""); 987var projectFile = persistentFolder.CreateOrOpenFile("Project1.csproj").WriteAllText(""); 992var documentFile = persistentFolder.CreateOrOpenFile("Document1.cs").WriteAllText("");
ProjectSystemShim\CPS\AnalyzersTests.cs (2)
26var ruleSetFile = Temp.CreateFile().WriteAllText( 50var ruleSetFile = Temp.CreateFile().WriteAllText(
ProjectSystemShim\LegacyProject\AnalyzersTests.cs (7)
30var ruleSetFile = Temp.CreateFile().WriteAllText( 67var ruleSetFile = Temp.CreateFile().WriteAllText( 95var ruleSetFile = Temp.CreateFile().WriteAllText( 119var ruleSetFile = Temp.CreateFile().WriteAllText( 161var ruleSetFile = Temp.CreateFile().WriteAllText( 196var ruleSetFile = Temp.CreateFile().WriteAllText( 232var ruleSetFile = Temp.CreateFile().WriteAllText(ruleSetSource);
Roslyn.VisualStudio.Next.UnitTests (1)
Remote\SnapshotSerializationTests.cs (1)
568tempCorlibXml.WriteAllText(@"<?xml version=""1.0"" encoding=""utf-8""?>
VBCSCompiler.UnitTests (17)
CompilerServerTests.cs (15)
115file.WriteAllText(pair.Value); 223var srcFile = tempDir.CreateFile("test.cs").WriteAllText(source).Path; 341var srcFile = _tempDirectory.CreateFile("test.cs").WriteAllText("♕").Path; 363var srcFile = _tempDirectory.CreateFile("test.vb").WriteAllText("♕").Path; 387var srcFile = _tempDirectory.CreateFile("test.vb").WriteAllText("♕").Path; 1148var srcFile = _tempDirectory.CreateFile("test.cs").WriteAllText("♕").Path; 1170var srcFile = _tempDirectory.CreateFile("test.vb").WriteAllText(@"♕").Path; 1197var srcFile = _tempDirectory.CreateFile("test.cs").WriteAllText("♕").Path; 1219var srcFile = _tempDirectory.CreateFile("test.vb").WriteAllText(@"♕").Path; 1304var srcFile = _tempDirectory.CreateFile("test.cs").WriteAllText("♕").Path; 1305var rspFile = _tempDirectory.CreateFile("temp.rsp").WriteAllText( 1328var srcFile = _tempDirectory.CreateFile("test.cs").WriteAllText("♕").Path; 1329var rspFile = _tempDirectory.CreateFile("temp.rsp").WriteAllText( 1394var srcFile = _tempDirectory.CreateFile("test.cs").WriteAllText("").Path; 1428var srcFile = _tempDirectory.CreateFile("test.vb").WriteAllText("").Path;
TouchedFileLoggingTests.cs (2)
58var source1 = Temp.CreateFile().WriteAllText(HelloWorldCS).Path; 109var source1 = Temp.CreateFile().WriteAllText(HelloWorldVB).Path;