Exemplo n.º 1
0
        public void SharesBaseType_WhenTypesDoNotShareCommonTypeReturnsFalse()
        {
            bool sharesCommonType = ReflectionHelper.SharesBaseType(typeof(Event), typeof(Event__), typeof(Event3));

            Assert.IsFalse(sharesCommonType);
        }
Exemplo n.º 2
0
        public void SharesBaseType_WhenTypesShareCommonTypeReturnsTrue()
        {
            bool sharesCommonType = ReflectionHelper.SharesBaseType(typeof(Event), typeof(Event1), typeof(EventA));

            Assert.IsTrue(sharesCommonType);
        }