@@ -11,6 +11,7 @@ public class TypeExtensionsTests
11
11
[ Theory ]
12
12
[ InlineData ( nameof ( DerivedThing . Id ) , typeof ( DerivedThing ) ) ]
13
13
[ InlineData ( nameof ( DerivedThing . Name ) , typeof ( BaseThing ) ) ]
14
+ [ InlineData ( nameof ( DerivedThing . DataInBytes ) , typeof ( BaseThing ) ) ]
14
15
[ InlineData ( nameof ( DerivedThing . Description ) , typeof ( DerivedThing ) ) ]
15
16
public void MemberInfoReflectedTypeMustMatchTheDeclaringType ( string propertyName , Type reflectedType )
16
17
{
@@ -24,6 +25,7 @@ public void MemberInfoReflectedTypeMustMatchTheDeclaringType(string propertyName
24
25
[ Theory ]
25
26
[ InlineData ( nameof ( DerivedThing . Id ) , typeof ( DerivedThing ) ) ]
26
27
[ InlineData ( nameof ( DerivedThing . Name ) , typeof ( BaseThing ) ) ]
28
+ [ InlineData ( nameof ( DerivedThing . DataInBytes ) , typeof ( BaseThing ) ) ]
27
29
[ InlineData ( nameof ( DerivedThing . Description ) , typeof ( DerivedThing ) ) ]
28
30
public void MemberInfoReflectedTypeMustMatchTheDeclaringTypeForGetSelectedMembers ( string propertyName ,
29
31
Type reflectedType )
@@ -67,6 +69,17 @@ public void GetSelectedMembers_WhenSelectIsEmpty_MustReturnAllLiteralAndLiteralL
67
69
private abstract class BaseThing
68
70
{
69
71
public string Name { get ; set ; }
72
+ public byte [ ] DataInBytes { get ; set ; }
73
+ public string [ ] ParametersArray { get ; set ; }
74
+ public ICollection < string > Strings { get ; set ; }
75
+ public List < string > ParametersList { get ; set ; }
76
+ public List < bool > Booleans { get ; set ; }
77
+ public ISet < DateTime > DateTimes { get ; set ; }
78
+ public ISet < DateOnly > Dates { get ; set ; }
79
+ public HashSet < Guid > Guides { get ; set ; }
80
+ public uint [ ] UnsignedInts { get ; set ; }
81
+ public IEnumerable < int > Ints { get ; set ; }
82
+ public List < object > Objects { get ; set ; }
70
83
}
71
84
72
85
private class DerivedThing : BaseThing , IDerivedThing
0 commit comments