Ejemplo n.º 1
0
        public void RubberStamp_Conditions_LessThanCondition_String_Equal_Test()
        {
            var condition = new LessThanCondition <TestClass, string>(p => p.Name, "cde");

            Assert.IsFalse(condition.IsValid(new TestClass {
                Name = "cde"
            }));
        }
Ejemplo n.º 2
0
        public void RubberStamp_Conditions_LessThanCondition_Int_Greater_Test()
        {
            var condition = new LessThanCondition <TestClass, int>(p => p.Index, 3);

            Assert.IsFalse(condition.IsValid(new TestClass {
                Index = 4
            }));
        }
Ejemplo n.º 3
0
        public void RubberStamp_Conditions_LessThanCondition_Int_Lower_Invalid_Test()
        {
            var condition = new LessThanCondition <TestClass, int>(p => p.Index, 3);

            Assert.IsTrue(condition.IsValid(new TestClass {
                Index = 2
            }));
        }
Ejemplo n.º 4
0
        public void RubberStamp_Conditions_LessThanCondition_String_Lower_Invalid_Test()
        {
            var condition = new LessThanCondition <TestClass, string>(p => p.Name, "cde");

            Assert.IsTrue(condition.IsValid(new TestClass {
                Name = "cce"
            }));
        }