public void GivenPropertyInfo_ValidatePageTypeProperty_ValidatesPageTypePropertyAttributes() { PropertyInfo propertyInfo = CreateFakePropertyInfo(); PageTypeDefinitionPropertiesValidator propertiesValidator = CreateValidatorWithFakeValidatePageTypePropertyMethodCalls(propertyInfo); propertiesValidator.ValidatePageTypeProperty(propertyInfo); propertiesValidator.AssertWasCalled(validator => validator.ValidatePageTypePropertyAttribute(propertyInfo)); }
public void GivenPropertyInfo_ValidatePageTypeProperty_ValidatesCompilerGeneratedPropertyIsVirtual() { PropertyInfo propertyInfo = CreateFakePropertyInfo(); PageTypeDefinitionPropertiesValidator propertiesValidator = CreateValidatorWithFakeValidatePageTypePropertyMethodCalls(propertyInfo); propertiesValidator.ValidatePageTypeProperty(propertyInfo); propertiesValidator.AssertWasCalled(validator => validator.ValidateCompilerGeneratedProperty(propertyInfo)); }