public void GenericRangeIsWithinReturnsFalseIfDateIsAfterEnd() { int testValue = 16; var range = new GenericRange <int>(_start, _end); Assert.IsFalse(range.IsWithin(testValue)); }
public void GenericRangeIsWithinReturnsTrueIfDateIncluded() { int testValue = 14; var range = new GenericRange <int>(_start, _end); Assert.IsTrue(range.IsWithin(testValue)); }
public void GenericRangeIsWithinReturnsFalseIfEndDateIsAfter() { var range = new GenericRange <int>(_start, _end); Assert.IsFalse(range.IsWithin(new GenericRange <int>(_start, _end + 1))); }
public void GenericRangeIsWithinReturnsFalseIfStartDateIsBefore() { var range = new GenericRange <int>(_start, _end); Assert.IsFalse(range.IsWithin(new GenericRange <int>(_start - 1, _end))); }
public void GenericRangeIsWithinReturnsFalseIfRangeIsNull() { var range = new GenericRange <int>(_start, _end); Assert.IsFalse(range.IsWithin(null as IRange <int>)); }
public void GenericRangeIsWithinReturnsTrueIfStartDateAndEndDateIsIncluded() { var range = new GenericRange <int>(_start, _end); Assert.IsTrue(range.IsWithin(new GenericRange <int>(_start + 1, _end - 1))); }