public void GetMethod_SetMethod(Type type, string name, bool hasGetter, bool hasSetter) { PropertyInfo propertyInfo = GetProperty(type, name); Assert.Equal(hasGetter, propertyInfo.GetMethod != null); Assert.Equal(hasSetter, propertyInfo.SetMethod != null); }