public DocumentMetadataProvider( TextDocumentToProjectMapper documentMapper, AvaloniaMetadataShepard metadataRepository, ProjectShepard projectShepard) { _documentMapper = documentMapper; _metadataRepository = metadataRepository; _projectShepard = projectShepard; }
public void TestCsprojResolution() { string directory = Path.Combine(TestUtils.GetApplicationRoot(), "..\\AvaloniaSample\\Views\\MainWindow.axaml"); var mapper = new TextDocumentToProjectMapper(Substitute.For <ILogger <TextDocumentToProjectMapper> >()); string csprojPath = mapper.GetProjectForDocument(directory); Assert.Equal(CsProjLocation, csprojPath); }