Exemplo n.º 1
0
 public DocumentMetadataProvider(
     TextDocumentToProjectMapper documentMapper,
     AvaloniaMetadataShepard metadataRepository,
     ProjectShepard projectShepard)
 {
     _documentMapper     = documentMapper;
     _metadataRepository = metadataRepository;
     _projectShepard     = projectShepard;
 }
Exemplo n.º 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);
        }