예제 #1
0
        public void SharesBaseType_WhenTypesDoNotShareCommonTypeReturnsFalse()
        {
            bool sharesCommonType = ReflectionHelper.SharesBaseType(typeof(Event), typeof(Event__), typeof(Event3));

            Assert.IsFalse(sharesCommonType);
        }
예제 #2
0
        public void SharesBaseType_WhenTypesShareCommonTypeReturnsTrue()
        {
            bool sharesCommonType = ReflectionHelper.SharesBaseType(typeof(Event), typeof(Event1), typeof(EventA));

            Assert.IsTrue(sharesCommonType);
        }