public static bool IsBasedOn <TParent>(this Type sourceType) { return(TypeReflections.IsTypeBasedOn(sourceType, typeof(TParent))); }
public void TypeBasedOnTypeWithEntryThreeAndBaseThreeWithLongTest() { TypeReflections.IsTypeBasedOn(Entry3, typeof(BaseLevelThree <long>)).ShouldBeTrue(); }
public static bool IsBasedOn(this Type sourceType, Type parentType) { return(TypeReflections.IsTypeBasedOn(sourceType, parentType)); }
public void TypeBasedOnTypeWithEntryTwoAndInterfaceOneTest() { TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceOne)).ShouldBeTrue(); }
public void TypeBasedOnTypeWithEntryTwoAndBaseTwoTest() { TypeReflections.IsTypeBasedOn(Entry2, typeof(BaseLevelTwo)).ShouldBeTrue(); }
public void TypeBasedOnTypeWithEntryTwoAndInterfaceThreeDefinitionTest() { TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceThree <>)).ShouldBeTrue(); }
public void TypeBasedOnTypeWithEntryTwoAndInterfaceThreeWithStringTest() { TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceThree <string>)).ShouldBeFalse(); }
public void TypeBasedOnTypeWithEntryTwoAndInterfaceFourWithStringAndIntTest() { TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceFour <string, int>)).ShouldBeFalse(); }
public void TypeBasedOnTypeWithEntryTwoAndInterfaceFourWithIntAndStringTest() { TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceFour <int, string>)).ShouldBeTrue(); }
public void TypeBasedOnTypeWithEntryOneAndAbstractOneTest() { TypeReflections.IsTypeBasedOn(Entry1, typeof(AbstractLevelOne)).ShouldBeTrue(); }