public void IntervalToWithTag_StartLessThanEnd_ReturnsInterval() { var interval = IntervalExtensions.IntervalTo(5, 10, "tag"); Assert.That(interval, Is.EqualTo(new Interval <int>(5, 10)).Using(IntervalEqualityComparer <int> .Default)); }
public void IntervalToWithTag_StartAfterEnd_ThrowsArgumentNullException() { Assert.Throws <ArgumentOutOfRangeException>(() => IntervalExtensions.IntervalTo(10, 5, "tag")); }