public void GivenNonVirtualProperty_ValidateCompilerGeneratedProperty_DoesNotThrowsException()
        {
            PropertyInfo nonVirtualCompilerGeneratedProperty          = typeof(TestPageType).GetProperty("NotGeneratedProperty");
            PageTypeDefinitionPropertiesValidator propertiesValidator = new PageTypeDefinitionPropertiesValidator(null);


            Exception exception = Record.Exception(() =>
            {
                propertiesValidator.ValidateCompilerGeneratedProperty(nonVirtualCompilerGeneratedProperty);
            });

            Assert.Null(exception);
        }
        public void GivenCompilerGeneratedPropertyWithPrivateSetter_ValidateCompilerGeneratedProperty_ThrowsException()
        {
            PropertyInfo nonVirtualCompilerGeneratedProperty          = typeof(TestPageType).GetProperty("CompilerGeneratedPropertyWithPrivateSetter");
            PageTypeDefinitionPropertiesValidator propertiesValidator = new PageTypeDefinitionPropertiesValidator(null);


            Exception exception = Record.Exception(() =>
            {
                propertiesValidator.ValidateCompilerGeneratedProperty(nonVirtualCompilerGeneratedProperty);
            });

            Assert.NotNull(exception);
        }