22 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 (16)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (14)
77sourceFileB.WriteAllText(sourceB2, encodingB); 150sourceFileB.WriteAllText(sourceB3, encodingB); 388var sourceFilePath = dir.CreateFile(sourceFileName).WriteAllText(source, Encoding.UTF8).Path; 565var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8); 616var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8); 673var sourceFileA = Temp.CreateFile().WriteAllText(sourceA, Encoding.UTF8); 674var sourceFileB = Temp.CreateFile().WriteAllText(sourceB, Encoding.UTF8); 774sourceFile.WriteAllText(source1, Encoding.UTF8); 912var sourceFile = dir.CreateFile("test.cs").WriteAllText(source1, encoding); 1148sourceFile.WriteAllText(source1, Encoding.UTF8); 1176sourceFile.WriteAllText(source0, Encoding.UTF8); 1238var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8); 1281var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8); 1342var sourceFile = dir.CreateFile("a.cs").WriteAllText(source1, Encoding.UTF8);
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
32var sourceFileA = dir.CreateFile("A.cs").WriteAllText(source1, Encoding.UTF8);
EditAndContinue\WatchHotReloadServiceTests.cs (1)
43var 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);