public void Equals_SameIntervalStartAndEnd() { Interval <int> i1 = Interval.Create(5, 10); Interval <int> i2 = Interval.Create(5, 10); Assert.That(IntervalExtensions.Equals(i1, i2), Is.True); }
public void Equals_NullIntervalAndOther_ReturnsTrue() { Interval <int> i1 = null; Interval <int> i2 = null; Assert.That(IntervalExtensions.Equals(i1, i2), Is.True); }
public void Equals_DifferentIntervalStarts_ReturnsFalse() { Interval <int> i1 = Interval.Create(2, 10); Interval <int> i2 = Interval.Create(5, 10); Assert.That(IntervalExtensions.Equals(i1, i2), Is.False); }
public void Equals_NullOther_ReturnsFalse() { Interval <int> i1 = Interval.Create(5, 10); Interval <int> i2 = null; Assert.That(IntervalExtensions.Equals(i1, i2), Is.False); }