public bool is_overlap(T1Range other) { if (is_empty() || other.is_empty()) { return(false); } if (end < other.start) { return(false); } if (start > other.end) { return(false); } return(true); }
public void When_start_is_earlier_than_end_range_should_not_be_empty() { var subject = new T1Range(1, 4); Assert.IsFalse(subject.is_empty()); }