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

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