public void DoNotResolveAClassThatIsNotReferenced()
        {
            var dependantClass = new AnalyzedClass {
                Namespace = "Namespace", ClassShortName = "ReferencedClass"
            };
            var dependantClass2 = new AnalyzedClass {
                Namespace = "Namespace", ClassShortName = "ReferencedClass2"
            };
            var notReferencedClass = new AnalyzedClass {
                Namespace = "Namespace", ClassShortName = "NotReferencedClass"
            };
            var classToResolve = new AnalyzedClass
            {
                Namespace      = "Namespace",
                ClassShortName = "Program",
                ReferencedObjectsWithoutNamespace = { "ReferencedClass", "ReferencedClass2" }
            };

            var dependencies =
                GetDependencyResolver(dependantClass, classToResolve, dependantClass2, notReferencedClass)
                .ResolveDependencies(classToResolve);

            Assert.IsTrue(new HashSet <AnalyzedClass> {
                dependantClass, dependantClass2
            }.SetEquals(dependencies));
        }
        public void ResolveClassDependency()
        {
            var dependantClass = new AnalyzedClass {
                Namespace = "Namespace", ClassShortName = "ReferencedClass"
            };
            var classToResolve = new AnalyzedClass
            {
                Namespace      = "Namespace",
                ClassShortName = "Program",
                ReferencedObjectsWithoutNamespace = { "ReferencedClass" }
            };

            var dependencies = GetDependencyResolver(dependantClass, classToResolve)
                               .ResolveDependencies(classToResolve);

            Assert.IsTrue(new HashSet <AnalyzedClass> {
                dependantClass
            }.SetEquals(dependencies));
        }