public void Test_IsValid_False_String()
        {
            MockRequiredEntity entity = new MockRequiredEntity();

            ValidateRequiredStrategy strategy = new ValidateRequiredStrategy();

            PropertyInfo property = entity.GetType().GetProperty("TestProperty");

            object[] objs = property.GetCustomAttributes(typeof(RequiredAttribute), true);

            IValidatePropertyAttribute attribute = (IValidatePropertyAttribute)objs[0];

            bool isValid = strategy.IsValid(entity, property, attribute);

            Assert.IsFalse(isValid, "Returned true when it should have been false.");
        }
        public void Test_IsValid_False_String()
        {
            MockRequiredEntity entity = new MockRequiredEntity();

            ValidateRequiredStrategy strategy = new ValidateRequiredStrategy();

            PropertyInfo property = entity.GetType().GetProperty("TestProperty");

            object[] objs = property.GetCustomAttributes(typeof(RequiredAttribute), true);

            IValidatePropertyAttribute attribute = (IValidatePropertyAttribute)objs[0];

            bool isValid = strategy.IsValid(entity, property, attribute);

            Assert.IsFalse(isValid, "Returned true when it should have been false.");
        }