public static void PropertyValue_ShadowingPropertyOfDifferentType(string propertyName, bool shouldUseShadowingProperty) { var instance = new DerivedClassWithoutProperty(); Assert.That(instance, Has.Property(propertyName).EqualTo(shouldUseShadowingProperty ? 2 : 1)); }
public static void PropertyExists_ShadowingPropertyOfDifferentType(string propertyName) { var instance = new DerivedClassWithoutProperty(); Assert.That(instance, Has.Property(propertyName)); }