public void RubberStamp_Conditions_NotEqualCondition_Int_Lower_Invalid_Test() { var condition = new IsNotEqualCondition <TestClass, int>(p => p.Index, 3); Assert.IsTrue(condition.IsValid(new TestClass { Index = 2 })); }
public void RubberStamp_Conditions_NotEqualCondition_String_Equal_Test() { var condition = new IsNotEqualCondition <TestClass, string>(p => p.Name, "cde"); Assert.IsFalse(condition.IsValid(new TestClass { Name = "cde" })); }
public void RubberStamp_Conditions_NotEqualCondition_Int_Equal_Test() { var condition = new IsNotEqualCondition <TestClass, int>(p => p.Index, 3); Assert.IsFalse(condition.IsValid(new TestClass { Index = 3 })); }