55 references to GetRootedPath
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (12)
CodeActions\CodeActionResolveTests.cs (1)
215var filePath = TestHelpers.GetRootedPath("C.cs");
Definitions\GoToDefinitionTests.cs (1)
104DocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(TestHelpers.GetRootedPath(TestSpanMapper.GeneratedFileName)),
References\FindImplementationsTests.cs (1)
99DocumentUri = 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")}"/> 177DocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(TestHelpers.GetRootedPath(TestSpanMapper.GeneratedFileName)),
SpellCheck\SpellCheckTests.cs (2)
361var csharpFilePath = TestHelpers.GetRootedPath("C.cs"); 362var typeScriptFilePath = TestHelpers.GetRootedPath("T.ts");
UriTests.cs (2)
90var documentFilePath = TestHelpers.GetRootedPath("A.cs"); 91var projectFilePath = TestHelpers.GetRootedPath("CSProj1.csproj");
Microsoft.CodeAnalysis.Workspaces.UnitTests (43)
CommandLineProject\CommandLineProjectTests.cs (14)
25var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.GetRootedPath("ProjectDirectory")); 40var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.GetRootedPath("ProjectDirectory"), ws); 48_ = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, @"goo.cs", TestHelpers.GetRootedPath("ProjectDirectory"), ws); 55var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.GetRootedPath("ProjectDirectory")); 66var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.GetRootedPath("ProjectDirectory")); 77var baseDir = TestHelpers.GetRootedPath("ProjectDirectory"); 89var baseDir = TestHelpers.GetRootedPath("ProjectDirectory"); 102var commandLine = TestHelpers.GetRootedPath("SomeDirectory", "goo.cs"); 103var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.GetRootedPath("ProjectDirectory")); 114var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.GetRootedPath("ProjectDirectory")); 125var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, TestHelpers.GetRootedPath("ProjectDirectory")); 136var baseDir = TestHelpers.GetRootedPath("ProjectDirectory"); 179var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.VisualBasic, commandLine, baseDirectory: TestHelpers.GetRootedPath("ProjectDirectory")); 191var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.VisualBasic, commandLine, baseDirectory: TestHelpers.GetRootedPath("ProjectDirectory"));
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
57var baseDir = TestHelpers.GetRootedPath("ProjectDirectory");
GeneratedCodeRecognitionTests.cs (3)
61"""), filePath: TestHelpers.GetRootedPath(".editorconfig")).Project; 67"""), filePath: TestHelpers.GetRootedPath(".editorconfig")).Project; 83var 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)) 4873solution = solution.AddDocument(sourceDocumentId, "Test" + extension, "", filePath: TestHelpers.GetRootedPath("Test" + extension)); 4883filePath: TestHelpers.GetRootedPath(".editorconfig"), 4909solution = solution.AddDocument(sourceDocumentId, "Test" + extension, "", filePath: TestHelpers.GetRootedPath("Test" + extension)); 4916filePath: TestHelpers.GetRootedPath(".editorconfig"), 4950solution = solution.AddDocument(sourceDocumentId, "Test" + extension, "", filePath: TestHelpers.GetRootedPath("Test" + extension)); 4957filePath: TestHelpers.GetRootedPath(".editorconfig"), 4995solution = solution.AddDocument(sourceDocumentId, "Test.cs", "", filePath: TestHelpers.GetRootedPath("Test.cs")); 5005filePath: TestHelpers.GetRootedPath(".globalconfig"), 5036""", filePath: TestHelpers.GetRootedPath("Test.cs")); 5051filePath: TestHelpers.GetRootedPath(".editorconfig"),
UtilityTest\FilePathUtilitiesTests.cs (14)
17var baseDirectory = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma"); 18var fullPath = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma", "Doc.txt"); 28var baseDirectory = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma"); 29var fullPath = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma", "Delta", "Doc.txt"); 39var baseDirectory = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma"); 40var fullPath = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma", "Delta", "Epsilon", "Doc.txt"); 50var baseDirectory = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma"); 51var fullPath = TestHelpers.GetRootedPath("Alpha", "Beta", "Doc.txt"); 61var baseDirectory = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma"); 62var fullPath = TestHelpers.GetRootedPath("Alpha", "Doc.txt"); 72var baseDirectory = TestHelpers.GetRootedPath("Alpha", "Beta", "Gamma"); 73var fullPath = TestHelpers.GetRootedPath("Alpha", "Phi", "Omega", "Doc.txt"); 94var baseDirectory = TestHelpers.GetRootedPath("Alpha", "Beta"); 95var fullPath = TestHelpers.GetRootedPath("Alpha", "Beta2", "Gamma");