Exemplo n.º 1
0
        public void RubberStamp_Conditions_GreaterThanCondition_String_Equal_Test()
        {
            var condition = new GreaterThanCondition <TestClass, string>(t => t.Name, "cde");

            Assert.IsFalse(condition.IsValid(new TestClass {
                Name = "cde"
            }));
        }
Exemplo n.º 2
0
        public void RubberStamp_Conditions_GreaterThanCondition_Int_Lower_Invalid_Test()
        {
            var condition = new GreaterThanCondition <TestClass, int>(t => t.Index, 3);

            Assert.IsFalse(condition.IsValid(new TestClass {
                Index = 2
            }));
        }