Esempio n. 1
0
        public void OneLevel()
        {
            TypeCode.Clear();
            var a       = TypeCode.Set("A", nousings, "acode1", new [] { "B", "C" });
            var allDeps = a.AllDependencies;

            Assert.AreEqual(3, allDeps.Count);
            Assert.IsTrue(allDeps.Contains(TypeCode.Get("A")));
            Assert.IsTrue(allDeps.Contains(TypeCode.Get("B")));
            Assert.IsTrue(allDeps.Contains(TypeCode.Get("C")));
        }
Esempio n. 2
0
        public void Recursive()
        {
            TypeCode.Clear();
            var a       = TypeCode.Set("A", nousings, "acode1", new [] { "A", "B", "C" });
            var b       = TypeCode.Set("B", nousings, "bcode1", new [] { "A", "B", "C", "D" });
            var allDeps = a.AllDependencies;

            Assert.AreEqual(4, allDeps.Count);
            Assert.IsTrue(allDeps.Contains(TypeCode.Get("A")));
            Assert.IsTrue(allDeps.Contains(TypeCode.Get("B")));
            Assert.IsTrue(allDeps.Contains(TypeCode.Get("C")));
            Assert.IsTrue(allDeps.Contains(TypeCode.Get("D")));
        }