55 references to GetRootedPath
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (12)
CodeActions\CodeActionResolveTests.cs (1)
215
var filePath = TestHelpers.
GetRootedPath
("C.cs");
Definitions\GoToDefinitionTests.cs (1)
104
DocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(TestHelpers.
GetRootedPath
(TestSpanMapper.GeneratedFileName)),
References\FindImplementationsTests.cs (1)
99
DocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(TestHelpers.
GetRootedPath
(TestSpanMapper.GeneratedFileName)),
Rename\RenameTests.cs (5)
94
<Document FilePath = "{TestHelpers.
GetRootedPath
("C.cs")}"><![CDATA[{markup}]]></Document>
97
<Document IsLinkFile = "true" LinkAssemblyName="CSProj" LinkFilePath="{TestHelpers.
GetRootedPath
("C.cs")}"/>
139
<Document FilePath = "{TestHelpers.
GetRootedPath
("C.cs")}"><![CDATA[{markup}]]></Document>
142
<Document IsLinkFile = "true" LinkAssemblyName="CSProj" LinkFilePath="{TestHelpers.
GetRootedPath
("C.cs")}"/>
177
DocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(TestHelpers.
GetRootedPath
(TestSpanMapper.GeneratedFileName)),
SpellCheck\SpellCheckTests.cs (2)
361
var csharpFilePath = TestHelpers.
GetRootedPath
("C.cs");
362
var typeScriptFilePath = TestHelpers.
GetRootedPath
("T.ts");
UriTests.cs (2)
90
var documentFilePath = TestHelpers.
GetRootedPath
("A.cs");
91
var projectFilePath = TestHelpers.
GetRootedPath
("CSProj1.csproj");
Microsoft.CodeAnalysis.Workspaces.UnitTests (43)
CommandLineProject\CommandLineProjectTests.cs (14)
25
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.
GetRootedPath
("ProjectDirectory"));
40
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.
GetRootedPath
("ProjectDirectory"), ws);
48
_ = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, @"goo.cs", TestHelpers.
GetRootedPath
("ProjectDirectory"), ws);
55
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.
GetRootedPath
("ProjectDirectory"));
66
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.
GetRootedPath
("ProjectDirectory"));
77
var baseDir = TestHelpers.
GetRootedPath
("ProjectDirectory");
89
var baseDir = TestHelpers.
GetRootedPath
("ProjectDirectory");
102
var commandLine = TestHelpers.
GetRootedPath
("SomeDirectory", "goo.cs");
103
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.
GetRootedPath
("ProjectDirectory"));
114
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.
GetRootedPath
("ProjectDirectory"));
125
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.
GetRootedPath
("ProjectDirectory"));
136
var baseDir = TestHelpers.
GetRootedPath
("ProjectDirectory");
179
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.VisualBasic, commandLine, baseDirectory: TestHelpers.
GetRootedPath
("ProjectDirectory"));
191
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.VisualBasic, commandLine, baseDirectory: TestHelpers.
GetRootedPath
("ProjectDirectory"));
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
57
var baseDir = TestHelpers.
GetRootedPath
("ProjectDirectory");
GeneratedCodeRecognitionTests.cs (3)
61
"""), filePath: TestHelpers.
GetRootedPath
(".editorconfig")).Project;
67
"""), filePath: TestHelpers.
GetRootedPath
(".editorconfig")).Project;
83
var document = project.AddDocument(fileName, "", filePath: Path.Combine(TestHelpers.
GetRootedPath
(), fileName));
SolutionTests\SolutionTests.cs (11)
4112
.AddDocument(did, "x", new WorkspaceFileTextLoader(solution.Services, TestHelpers.
GetRootedPath
("doesnotexist.cs"), Encoding.UTF8))
4873
solution = solution.AddDocument(sourceDocumentId, "Test" + extension, "", filePath: TestHelpers.
GetRootedPath
("Test" + extension));
4883
filePath: TestHelpers.
GetRootedPath
(".editorconfig"),
4909
solution = solution.AddDocument(sourceDocumentId, "Test" + extension, "", filePath: TestHelpers.
GetRootedPath
("Test" + extension));
4916
filePath: TestHelpers.
GetRootedPath
(".editorconfig"),
4950
solution = solution.AddDocument(sourceDocumentId, "Test" + extension, "", filePath: TestHelpers.
GetRootedPath
("Test" + extension));
4957
filePath: TestHelpers.
GetRootedPath
(".editorconfig"),
4995
solution = solution.AddDocument(sourceDocumentId, "Test.cs", "", filePath: TestHelpers.
GetRootedPath
("Test.cs"));
5005
filePath: TestHelpers.
GetRootedPath
(".globalconfig"),
5036
""", filePath: TestHelpers.
GetRootedPath
("Test.cs"));
5051
filePath: TestHelpers.
GetRootedPath
(".editorconfig"),
UtilityTest\FilePathUtilitiesTests.cs (14)
17
var baseDirectory = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma");
18
var fullPath = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma", "Doc.txt");
28
var baseDirectory = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma");
29
var fullPath = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma", "Delta", "Doc.txt");
39
var baseDirectory = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma");
40
var fullPath = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma", "Delta", "Epsilon", "Doc.txt");
50
var baseDirectory = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma");
51
var fullPath = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Doc.txt");
61
var baseDirectory = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma");
62
var fullPath = TestHelpers.
GetRootedPath
("Alpha", "Doc.txt");
72
var baseDirectory = TestHelpers.
GetRootedPath
("Alpha", "Beta", "Gamma");
73
var fullPath = TestHelpers.
GetRootedPath
("Alpha", "Phi", "Omega", "Doc.txt");
94
var baseDirectory = TestHelpers.
GetRootedPath
("Alpha", "Beta");
95
var fullPath = TestHelpers.
GetRootedPath
("Alpha", "Beta2", "Gamma");