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

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