21 references to WriteAllText
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
238var sourceFile = dir.CreateFile("test.cs").WriteAllText(source1, Encoding.UTF8);
Microsoft.CodeAnalysis.Features.UnitTests (15)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (14)
76sourceFileB.WriteAllText(sourceB2, encodingB); 149sourceFileB.WriteAllText(sourceB3, encodingB); 387var sourceFilePath = dir.CreateFile(sourceFileName).WriteAllText(source, Encoding.UTF8).Path; 564var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8); 615var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8); 672var sourceFileA = Temp.CreateFile().WriteAllText(sourceA, Encoding.UTF8); 673var sourceFileB = Temp.CreateFile().WriteAllText(sourceB, Encoding.UTF8); 773sourceFile.WriteAllText(source1, Encoding.UTF8); 911var sourceFile = dir.CreateFile("test.cs").WriteAllText(source1, encoding); 1147sourceFile.WriteAllText(source1, Encoding.UTF8); 1175sourceFile.WriteAllText(source0, Encoding.UTF8); 1237var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8); 1280var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8); 1341var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8);
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
32var sourceFileA = dir.CreateFile("A.cs").WriteAllText(source1, Encoding.UTF8);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
609Dim src As String = Temp.CreateFile().WriteAllText("♚", New System.Text.UTF8Encoding(False)).Path 628Dim src As String = Temp.CreateFile().WriteAllText("♚", New System.Text.UTF8Encoding(False)).Path
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (3)
3291var file = Temp.CreateFile().WriteAllText(text1, Encoding.UTF8); 3345var file = Temp.CreateFile().WriteAllText(text, Encoding.UTF8); 3412var file = Temp.CreateFile().WriteAllText(text, Encoding.UTF8);