Example #1
0
        public void GetSubtypesFromAllAssemblies()
        {
            Type[] expected = { typeof(Mock3), typeof(Mock1), typeof(Mock2) };
            Type[] real     = TypeReflectionUtility.GetSubtypesFromAllAssemblies(typeof(MockSuperType));

            Assert.AreEqual(expected, real);
        }
Example #2
0
        public void GetSubtypesFromAllAssembliesButActuallyJustSame()
        {
            Type[] expected = { typeof(MockA), typeof(MockB), typeof(MockC) };
            Type[] real     = TypeReflectionUtility.GetSubtypesFromAllAssemblies(typeof(MockAbstract));

            Assert.AreEqual(expected, real);
        }