private void TestWithNull(string value, Enums.ComparisonOperators comparison) { var c = new ValueComparison("A Property", comparison, new List <string>(1) { "A Value" }); var result = c.Compare(value); Assert.IsTrue(result); }
public void ValueComparisonReturnsTrueOnNotEquals() { // Arrange var c = new ValueComparison("A Property", Enums.ComparisonOperators.NOTEQ, new List <string>(1) { "A Value" }); // Act var result = c.Compare("Not A Value"); // Assert Assert.IsTrue(result); }
public void ValueComparisonReturnsFalseOnNotIn() { // Arrange var c = new ValueComparison("A Property", Enums.ComparisonOperators.NOTIN, new List <string>(2) { "A Value", "B Value" }); // Act var result = c.Compare("A Value"); // Assert Assert.IsFalse(result); }