示例#1
0
 public DocumentMetadataProvider(
     TextDocumentToProjectMapper documentMapper,
     AvaloniaMetadataShepard metadataRepository,
     ProjectShepard projectShepard)
 {
     _documentMapper     = documentMapper;
     _metadataRepository = metadataRepository;
     _projectShepard     = projectShepard;
 }
示例#2
0
        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);
        }