Tag: Development

Community

Reflecting Fields

(Richard Carr) The third part of the Reflection tutorial looks at reflection of fields. Information about a type’s fields can be obtained in FieldInfo objects, using System.Type class methods. FieldInfo objects include properties that describe a field’s type and scope.

Community

Moq Partial Mocks

(Richard Carr) Moq is commonly used to create mock objects based upon interfaces. However, it can also be used to mock classes. This includes the possibility of creating partial mocks, where some members are intercepted with expectations whilst others run as normal.