@@ -111,6 +111,49 @@ public class TypeAssemblyTestHelper : AssemblyTestHelper
111111 public Class OtherUnrelatedClassForAssign ;
112112 public Type OtherUnrelatedClassForAssignSystemType = typeof ( OtherUnrelatedClassForAssign ) ;
113113
114+ // Member test classes
115+ public Class ClassWithStaticField ;
116+ public Type ClassWithStaticFieldSystemType = typeof ( ClassWithStaticField ) ;
117+
118+ public Class ClassWithNonStaticField ;
119+ public Type ClassWithNonStaticFieldSystemType = typeof ( ClassWithNonStaticField ) ;
120+
121+ public Class ClassWithReadOnlyField ;
122+ public Type ClassWithReadOnlyFieldSystemType = typeof ( ClassWithReadOnlyField ) ;
123+
124+ public Class ClassWithWritableProperty ;
125+ public Type ClassWithWritablePropertySystemType = typeof ( ClassWithWritableProperty ) ;
126+
127+ public Class OtherClassWithWritableProperty ;
128+ public Type OtherClassWithWritablePropertySystemType = typeof ( OtherClassWithWritableProperty ) ;
129+
130+ public Class ClassWithInitOnlyProperty ;
131+ public Type ClassWithInitOnlyPropertySystemType = typeof ( ClassWithInitOnlyProperty ) ;
132+
133+ public Class ClassWithGetOnlyProperty ;
134+ public Type ClassWithGetOnlyPropertySystemType = typeof ( ClassWithGetOnlyProperty ) ;
135+
136+ public Class OtherClassWithStaticField ;
137+ public Type OtherClassWithStaticFieldSystemType = typeof ( OtherClassWithStaticField ) ;
138+
139+ public Class ClassWithStaticProperty ;
140+ public Type ClassWithStaticPropertySystemType = typeof ( ClassWithStaticProperty ) ;
141+
142+ public Class ClassWithStaticMethod ;
143+ public Type ClassWithStaticMethodSystemType = typeof ( ClassWithStaticMethod ) ;
144+
145+ // Individual members
146+ public IMember StaticField ;
147+ public IMember NonStaticField ;
148+ public IMember ReadOnlyField ;
149+ public IMember WritableProperty ;
150+ public IMember OtherWritableProperty ;
151+ public IMember InitOnlyProperty ;
152+ public IMember GetOnlyProperty ;
153+ public IMember OtherStaticField ;
154+ public IMember StaticProperty ;
155+ public IMember StaticMethod ;
156+
114157 public TypeAssemblyTestHelper ( )
115158 {
116159 SimpleEnum = Architecture . GetITypeOfType ( typeof ( SimpleEnum ) ) ;
@@ -160,5 +203,43 @@ public TypeAssemblyTestHelper()
160203 OtherUnrelatedClassForAssign = Architecture . GetClassOfType (
161204 typeof ( OtherUnrelatedClassForAssign )
162205 ) ;
206+
207+ // Member test classes
208+ ClassWithStaticField = Architecture . GetClassOfType ( typeof ( ClassWithStaticField ) ) ;
209+ ClassWithNonStaticField = Architecture . GetClassOfType ( typeof ( ClassWithNonStaticField ) ) ;
210+ ClassWithReadOnlyField = Architecture . GetClassOfType ( typeof ( ClassWithReadOnlyField ) ) ;
211+ ClassWithWritableProperty = Architecture . GetClassOfType ( typeof ( ClassWithWritableProperty ) ) ;
212+ OtherClassWithWritableProperty = Architecture . GetClassOfType (
213+ typeof ( OtherClassWithWritableProperty )
214+ ) ;
215+ ClassWithInitOnlyProperty = Architecture . GetClassOfType ( typeof ( ClassWithInitOnlyProperty ) ) ;
216+ ClassWithGetOnlyProperty = Architecture . GetClassOfType ( typeof ( ClassWithGetOnlyProperty ) ) ;
217+ OtherClassWithStaticField = Architecture . GetClassOfType ( typeof ( OtherClassWithStaticField ) ) ;
218+ ClassWithStaticProperty = Architecture . GetClassOfType ( typeof ( ClassWithStaticProperty ) ) ;
219+ ClassWithStaticMethod = Architecture . GetClassOfType ( typeof ( ClassWithStaticMethod ) ) ;
220+
221+ // Individual members
222+ StaticField = ClassWithStaticField . GetFieldMembersWithName ( "StaticField" ) . First ( ) ;
223+ NonStaticField = ClassWithNonStaticField . GetFieldMembersWithName ( "NonStaticField" ) . First ( ) ;
224+ ReadOnlyField = ClassWithReadOnlyField . GetFieldMembersWithName ( "ReadOnlyField" ) . First ( ) ;
225+ WritableProperty = ClassWithWritableProperty
226+ . GetPropertyMembersWithName ( "WritableProperty" )
227+ . First ( ) ;
228+ OtherWritableProperty = OtherClassWithWritableProperty
229+ . GetPropertyMembersWithName ( "OtherWritableProperty" )
230+ . First ( ) ;
231+ InitOnlyProperty = ClassWithInitOnlyProperty
232+ . GetPropertyMembersWithName ( "InitOnlyProperty" )
233+ . First ( ) ;
234+ GetOnlyProperty = ClassWithGetOnlyProperty
235+ . GetPropertyMembersWithName ( "GetOnlyProperty" )
236+ . First ( ) ;
237+ OtherStaticField = OtherClassWithStaticField
238+ . GetFieldMembersWithName ( "OtherStaticField" )
239+ . First ( ) ;
240+ StaticProperty = ClassWithStaticProperty
241+ . GetPropertyMembersWithName ( "StaticProperty" )
242+ . First ( ) ;
243+ StaticMethod = ClassWithStaticMethod . GetMethodMembersWithName ( "StaticMethod()" ) . First ( ) ;
163244 }
164245}
0 commit comments