public void GreaterThanZeroAttribute_PassSomethingEqualOrLessThanZeroToIsValid_ReturnsFalse() { var greaterThanZero = new GreaterThanZeroAttribute(); Assert.IsFalse(greaterThanZero.IsValid(0)); Assert.IsFalse(greaterThanZero.IsValid(-1)); }
public void GreaterThanZeroAttribute_PassSomethingNotNumeric_ReturnsFalse() { var greaterThanZero = new GreaterThanZeroAttribute(); Assert.IsFalse(greaterThanZero.IsValid("a")); }
public void GreaterThanZeroAttribute_PassSomethingGreaterThanZeroToIsValid_ReturnsTrue() { var greaterThanZero = new GreaterThanZeroAttribute(); Assert.IsTrue(greaterThanZero.IsValid(1)); }