public void GetFields_MapsAllPublicPropertiesAndFields() { var mapper = new AdHocObjectMapper(); var details = new TestDetails(); var fields = mapper.GetFields(details); var memberNames = typeof (TestDetails).GetPublicPropertiesAndFields().Select(m => m.Name); fields.DoesContainKeys(memberNames); }
public void GetFields_MapsAllPublicPropertiesAndFields() { var mapper = new AdHocObjectMapper(); var details = new TestDetails(); var fields = mapper.GetFields(details); var memberNames = typeof(TestDetails).GetPublicPropertiesAndFields().Select(m => m.Name); fields.DoesContainKeys(memberNames); }