public void IsImportDocument_NonImportDocument_ReturnsFalse() { // Arrange var state = ProjectState.Create(Workspace.Services, HostProject, ProjectWorkspaceState) .WithAddedHostDocument(Documents[0], DocumentState.EmptyLoader); var snapshot = new DefaultProjectSnapshot(state); var document = snapshot.GetDocument(Documents[0].FilePath); // Act var result = snapshot.IsImportDocument(document); // Assert Assert.False(result); }
public void IsImportDocument_ImportDocument_ReturnsTrue() { // Arrange var state = ProjectState.Create(Workspace.Services, HostProject, WorkspaceProject) .WithAddedHostDocument(Documents[0], DocumentState.EmptyLoader) .WithAddedHostDocument(TestProjectData.SomeProjectImportFile, DocumentState.EmptyLoader); var snapshot = new DefaultProjectSnapshot(state); var document = snapshot.GetDocument(TestProjectData.SomeProjectImportFile.FilePath); // Act var result = snapshot.IsImportDocument(document); // Assert Assert.True(result); }