22 references to WriteAllText
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
238
var sourceFile = dir.CreateFile("test.cs").
WriteAllText
(source1, Encoding.UTF8);
Microsoft.CodeAnalysis.Features.UnitTests (16)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (14)
77
sourceFileB.
WriteAllText
(sourceB2, encodingB);
150
sourceFileB.
WriteAllText
(sourceB3, encodingB);
388
var sourceFilePath = dir.CreateFile(sourceFileName).
WriteAllText
(source, Encoding.UTF8).Path;
565
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
616
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
673
var sourceFileA = Temp.CreateFile().
WriteAllText
(sourceA, Encoding.UTF8);
674
var sourceFileB = Temp.CreateFile().
WriteAllText
(sourceB, Encoding.UTF8);
774
sourceFile.
WriteAllText
(source1, Encoding.UTF8);
912
var sourceFile = dir.CreateFile("test.cs").
WriteAllText
(source1, encoding);
1148
sourceFile.
WriteAllText
(source1, Encoding.UTF8);
1176
sourceFile.
WriteAllText
(source0, Encoding.UTF8);
1238
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
1281
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
1342
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
32
var sourceFileA = dir.CreateFile("A.cs").
WriteAllText
(source1, Encoding.UTF8);
EditAndContinue\WatchHotReloadServiceTests.cs (1)
43
var sourceFileA = dir.CreateFile("A.cs").
WriteAllText
(source1, Encoding.UTF8);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
609
Dim src As String = Temp.CreateFile().
WriteAllText
("♚", New System.Text.UTF8Encoding(False)).Path
628
Dim src As String = Temp.CreateFile().
WriteAllText
("♚", New System.Text.UTF8Encoding(False)).Path
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (3)
3291
var file = Temp.CreateFile().
WriteAllText
(text1, Encoding.UTF8);
3345
var file = Temp.CreateFile().
WriteAllText
(text, Encoding.UTF8);
3412
var file = Temp.CreateFile().
WriteAllText
(text, Encoding.UTF8);