Exemplo n.º 1
0
 public static bool IsBasedOn <TParent>(this Type sourceType)
 {
     return(TypeReflections.IsTypeBasedOn(sourceType, typeof(TParent)));
 }
Exemplo n.º 2
0
 public void TypeBasedOnTypeWithEntryThreeAndBaseThreeWithLongTest()
 {
     TypeReflections.IsTypeBasedOn(Entry3, typeof(BaseLevelThree <long>)).ShouldBeTrue();
 }
Exemplo n.º 3
0
 public static bool IsBasedOn(this Type sourceType, Type parentType)
 {
     return(TypeReflections.IsTypeBasedOn(sourceType, parentType));
 }
Exemplo n.º 4
0
 public void TypeBasedOnTypeWithEntryTwoAndInterfaceOneTest()
 {
     TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceOne)).ShouldBeTrue();
 }
Exemplo n.º 5
0
 public void TypeBasedOnTypeWithEntryTwoAndBaseTwoTest()
 {
     TypeReflections.IsTypeBasedOn(Entry2, typeof(BaseLevelTwo)).ShouldBeTrue();
 }
Exemplo n.º 6
0
 public void TypeBasedOnTypeWithEntryTwoAndInterfaceThreeDefinitionTest()
 {
     TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceThree <>)).ShouldBeTrue();
 }
Exemplo n.º 7
0
 public void TypeBasedOnTypeWithEntryTwoAndInterfaceThreeWithStringTest()
 {
     TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceThree <string>)).ShouldBeFalse();
 }
Exemplo n.º 8
0
 public void TypeBasedOnTypeWithEntryTwoAndInterfaceFourWithStringAndIntTest()
 {
     TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceFour <string, int>)).ShouldBeFalse();
 }
Exemplo n.º 9
0
 public void TypeBasedOnTypeWithEntryTwoAndInterfaceFourWithIntAndStringTest()
 {
     TypeReflections.IsTypeBasedOn(Entry2, typeof(IInterfaceFour <int, string>)).ShouldBeTrue();
 }
Exemplo n.º 10
0
 public void TypeBasedOnTypeWithEntryOneAndAbstractOneTest()
 {
     TypeReflections.IsTypeBasedOn(Entry1, typeof(AbstractLevelOne)).ShouldBeTrue();
 }