21 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 (15)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (14)
76
sourceFileB.
WriteAllText
(sourceB2, encodingB);
149
sourceFileB.
WriteAllText
(sourceB3, encodingB);
387
var sourceFilePath = dir.CreateFile(sourceFileName).
WriteAllText
(source, Encoding.UTF8).Path;
564
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
615
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
672
var sourceFileA = Temp.CreateFile().
WriteAllText
(sourceA, Encoding.UTF8);
673
var sourceFileB = Temp.CreateFile().
WriteAllText
(sourceB, Encoding.UTF8);
773
sourceFile.
WriteAllText
(source1, Encoding.UTF8);
911
var sourceFile = dir.CreateFile("test.cs").
WriteAllText
(source1, encoding);
1147
sourceFile.
WriteAllText
(source1, Encoding.UTF8);
1175
sourceFile.
WriteAllText
(source0, Encoding.UTF8);
1237
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
1280
var sourceFile = dir.CreateFile("a.cs").
WriteAllText
(source1, Encoding.UTF8);
1341
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);
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);