public void RangeCompareToWithin() { var range = new DoubleRange(3, 10); int value = 5; int comp = range.CompareTo(value); Assert.AreEqual(0, comp); }
public void RangeCompareToAbove() { var range = new DoubleRange(3, 10); int value = 12; int comp = range.CompareTo(value); Assert.AreEqual(1, comp); }
public void RangeCompareToBelow() { var range = new DoubleRange(3, 10); int value = 1; int comp = range.CompareTo(value); Assert.AreEqual(-1, comp); }