public void Is_Invalid() { var rateLimits = new RateLimits(); rateLimits.ResetsAt = DateTime.Now; var isValid = rateLimits.IsStillValid(); Assert.IsFalse(isValid); }
public void Is_Valid() { var rateLimits = new RateLimits(); rateLimits.ResetsAt = DateTime.Now.AddSeconds(10); var isValid = rateLimits.IsStillValid(); Assert.IsTrue(isValid); }