Example #1
0
        private bool CheckProjectReferences(TextWriter textWriter)
        {
            var allGood = true;

            var declaredList = _projectUtil.GetDeclaredProjectReferences();

            allGood &= CheckProjectReferencesComplete(textWriter, declaredList);
            allGood &= CheckUnitTestReferenceRestriction(textWriter, declaredList);
            allGood &= CheckTransitiveReferences(textWriter, declaredList);

            return(allGood);
        }
        private bool CheckProjectReferences(TextWriter textWriter)
        {
            var allGood = true;

            var declaredEntryList = _projectUtil.GetDeclaredProjectReferences();
            var declaredList      = declaredEntryList.Select(x => x.ProjectKey).ToList();

            allGood &= CheckProjectReferencesComplete(textWriter, declaredList);
            allGood &= CheckUnitTestReferenceRestriction(textWriter, declaredList);
            allGood &= CheckTransitiveReferences(textWriter, declaredList);
            allGood &= CheckProjectReferencesHaveCorrectGuid(textWriter, declaredEntryList);

            return(allGood);
        }
Example #3
0
        private bool CheckProjectReferences(TextWriter textWriter)
        {
            var allGood = true;

            var declaredList = _projectUtil.GetDeclaredProjectReferences();

            allGood &= CheckProjectReferencesComplete(textWriter, declaredList);

            // Disabling this check until we have time to discuss the team implications.
            // allGood &= CheckUnitTestReferenceRestriction(textWriter, declaredList);

            allGood &= CheckTransitiveReferences(textWriter, declaredList);

            return(allGood);
        }