public void SharesBaseType_WhenTypesDoNotShareCommonTypeReturnsFalse() { bool sharesCommonType = ReflectionHelper.SharesBaseType(typeof(Event), typeof(Event__), typeof(Event3)); Assert.IsFalse(sharesCommonType); }
public void SharesBaseType_WhenTypesShareCommonTypeReturnsTrue() { bool sharesCommonType = ReflectionHelper.SharesBaseType(typeof(Event), typeof(Event1), typeof(EventA)); Assert.IsTrue(sharesCommonType); }