public void Test()
 {
     Utilities.Validation.Rules.GreaterThan<ClassA, int> TestObject = new GreaterThan<ClassA, int>(x => x.ItemA, 3, "Error");
     ClassA Temp = new ClassA();
     Temp.ItemA = 4;
     Assert.DoesNotThrow(() => TestObject.Validate(Temp));
     Temp.ItemA = 3;
     Assert.Throws<NotValid>(() => TestObject.Validate(Temp));
 }
        public void Test()
        {
            Utilities.Validation.Rules.GreaterThan <ClassA, int> TestObject = new GreaterThan <ClassA, int>(x => x.ItemA, 3, "Error");
            ClassA Temp = new ClassA();

            Temp.ItemA = 4;
            Assert.DoesNotThrow(() => TestObject.Validate(Temp));
            Temp.ItemA = 3;
            Assert.Throws <NotValid>(() => TestObject.Validate(Temp));
        }