public void GetDocumentsWithFilterTest() { var solutionFacade = new SolutionFacade(@"C:\dev\diploma\CodeAnalyzing\Tests\TestSolutionFramework.sln"); var projects = solutionFacade.GetProjects(x => x.Name != "TestFrameworkProject"); projects.Length.Should().Be(0); }
public void TestGetProjects(string solutionPath) { var solutionFacade = new SolutionFacade(solutionPath); var projects = solutionFacade.GetProjects(); projects.Should().NotBeNullOrEmpty(); }
public void SetUp() { var solutionFacade = new SolutionFacade(@"C:\dev\diploma\CodeAnalyzing\Tests\TestSolutionFramework.sln"); var project = solutionFacade.GetProjects(x => x.Name == "TestFrameworkProject").First(); var projectFacade = new ProjectFacade(project); var document = projectFacade.GetDocuments(x => x.Name == "TestClassForNamesGetting.cs").First(); _documentFacade = new DocumentFacade(document); }
public void GetDocumentsTest() { var solutionFacade = new SolutionFacade(@"C:\dev\diploma\CodeAnalyzing\Tests\TestSolutionFramework.sln"); var projects = solutionFacade.GetProjects(); projects.Length.Should().Be(1); var project = projects.First(); project.Name.Should().BeEquivalentTo("TestFrameworkProject"); }