public void ShouldEvaluateAsMajorIntervalContainedInOtherInterval() { var intervalOne = new IntervalWithValue <long, long>(1, 5, 0); var intervalTwo = new IntervalWithValue <long, long>(-5, 10, 0); Assert.Equal(1, intervalOne.CompareTo(intervalTwo)); }
public void ShouldEvaluateAsMinorIntervalWithInitEqualAndEndMajor() { var intervalOne = new IntervalWithValue <long, long>(1, 5, 0); var intervalTwo = new IntervalWithValue <long, long>(1, 6, 0); Assert.Equal(-1, intervalOne.CompareTo(intervalTwo)); }
public void ShouldEvaluateAsEqualIntervals() { var intervalOne = new IntervalWithValue <long, long>(1, 5, 0); var intervalTwo = new IntervalWithValue <long, long>(1, 5, 0); Assert.Equal(0, intervalOne.CompareTo(intervalTwo)); }
public void ShouldEvaluateAsMajorIntervalsWithInitAndEndMinorExclusive() { var intervalOne = new IntervalWithValue <long, long>(1, 5, 0); var intervalTwo = new IntervalWithValue <long, long>(-5, 0, 0); Assert.Equal(1, intervalOne.CompareTo(intervalTwo)); }