public void IsValidReturnFalseIfGivenDateIsNull() { var instance = new ValidateCurrentDateAttribute(); bool result = instance.IsValid(null); Assert.False(result); }
public void IsValidReturnTrueIfGivenDateIsInFuture() { var instance = new ValidateCurrentDateAttribute(); bool result = instance.IsValid(DateTime.UtcNow.AddDays(1)); Assert.True(result); }
public void IsValidReturnFalseIfGivenDateIsInPast() { var instance = new ValidateCurrentDateAttribute(); bool result = instance.IsValid(DateTime.UtcNow); Assert.False(result); }