public Given_a_reference_with_path_which_does_not_exist() { this.reference = new ProjectReference { Name = "what", Path = "what.csproj", Referrer = "project", SourceType = ReferenceSourceType.Project }; this.check = new SolutionIntegrityCheck( new MockFileSystem(new Dictionary<string, MockFileData> { { "any.csproj", new MockFileData(String.Empty) } }), new ProjectReference[0], Mock.Of<IProjectParser>()); }
public Given_a_project_with_a_reference_which_does_not_exist_in_solution() { var projectsInSolution = new[] { ProjectReferenceTestSample.ReferenceFromSolutionToProjectWithReferences }; var parserMock = new Mock<IProjectParser>(); parserMock .Setup(p => p.ParseProjectReferences(ProjectReferenceTestSample.ReferenceFromSolutionToProjectWithReferences.FullPath)) .Returns(new[] { ProjectReferenceTestSample.ReferenceFromProjectToAProjectWithSameName }); var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData> { {Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, "testB.csproj")), new MockFileData(String.Empty)} }); this.reference = ProjectReferenceTestSample.ReferenceFromSolutionToProjectWithReferences; this.check = new SolutionIntegrityCheck(fileSystem, projectsInSolution, parserMock.Object); }