static void TestRecover() { double min = -0.7, max = 1.5; Assert.True(i1.Constrain(min, max) == new Interval(min, max)); Assert.True(i3.Constrain(min, max) == new Interval(1.0, max)); Assert.True(i4.Constrain(min, max) == new Interval(max, max)); Assert.True(i5.Constrain(min, max) == new Interval(min, min)); }