public EditorDocumentManagerListenerTest() { ProjectFilePath = TestProjectData.SomeProject.FilePath; DocumentFilePath = TestProjectData.SomeProjectFile1.FilePath; TextLoader = TextLoader.From(TextAndVersion.Create(SourceText.From("FILE"), VersionStamp.Default)); FileChangeTracker = new DefaultFileChangeTracker(DocumentFilePath); TextBuffer = new TestTextBuffer(new StringTextSnapshot("Hello")); }
public EditorDocumentManagerListenerTest() { ProjectFilePath = "C:\\project1\\project.csproj"; DocumentFilePath = "c:\\project1\\file1.cshtml"; TextLoader = TextLoader.From(TextAndVersion.Create(SourceText.From("FILE"), VersionStamp.Default)); FileChangeTracker = new DefaultFileChangeTracker(DocumentFilePath); TextBuffer = new TestTextBuffer(new StringTextSnapshot("Hello")); }
public EditorDocumentTest() { DocumentManager = new Mock <EditorDocumentManager>(MockBehavior.Strict).Object; Mock.Get(DocumentManager).Setup(m => m.RemoveDocument(It.IsAny <EditorDocument>())).Verifiable(); ProjectFilePath = TestProjectData.SomeProject.FilePath; DocumentFilePath = TestProjectData.SomeProjectFile1.FilePath; TextLoader = TextLoader.From(TextAndVersion.Create(SourceText.From("FILE"), VersionStamp.Default)); FileChangeTracker = new DefaultFileChangeTracker(DocumentFilePath); TextBuffer = new TestTextBuffer(new StringTextSnapshot("Hello")); }