ArchiMetrics.CodeReview.Rules.Tests.Rules.Semantic.LackOfCohesionRuleTests.GivenALackOfCohesionOfMethodsRule.WhenAnalyzingAnUncohesiveClassThenReturnsError C# (CSharp) Method

WhenAnalyzingAnUncohesiveClassThenReturnsError() private method

private WhenAnalyzingAnUncohesiveClassThenReturnsError ( ) : void
return void
            public void WhenAnalyzingAnUncohesiveClassThenReturnsError()
            {
                var solution = CreateSolution(Uncohesive);
                var classDeclaration = (from p in solution.Projects
                                        from d in p.Documents
                                        let model = d.GetSemanticModelAsync().Result
                                        let root = d.GetSyntaxRootAsync().Result
                                        from n in root.DescendantNodes().OfType<ClassDeclarationSyntax>()
                                        select new
                                        {
                                            semanticModel = model,
                                            node = n
                                        }).First();
                var result = _rule.Evaluate(classDeclaration.node, classDeclaration.semanticModel, solution);

                Assert.NotNull(result);
            }
        }
LackOfCohesionRuleTests.GivenALackOfCohesionOfMethodsRule