コード例 #1
0
        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);
        }
コード例 #2
0
        public void TestGetProjects(string solutionPath)
        {
            var solutionFacade = new SolutionFacade(solutionPath);

            var projects = solutionFacade.GetProjects();

            projects.Should().NotBeNullOrEmpty();
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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");
        }