public void MonthExpirationTimeSpan() { var span = ApiLoggingHandler.CalculateTimeUntil(DateTime.Now, ApiLoggingHandler.Month); var actual = span.Days; Debug.WriteLine(actual); Debug.WriteLine(DateTime.Now.Add(span)); Assert.That(actual, Is.GreaterThan(0)); Assert.That(actual, Is.LessThan(31)); }
public void TodayExpirationTimeSpan() { var span = ApiLoggingHandler.CalculateTimeUntil(DateTime.Now, ApiLoggingHandler.Today); var actual = span.Hours; Debug.WriteLine(actual); Debug.WriteLine(DateTime.Now.Add(span)); Assert.That(actual, Is.GreaterThan(0)); Assert.That(actual, Is.LessThan(24)); }