public void IntervalFromMidpointAndWidth() { double m = 1.0; double w = 4.0; Interval ab = Interval.FromMidpointAndWidth(m, w); Assert.IsTrue(ab.Width == w); Assert.IsTrue(ab.Midpoint == m); Assert.IsTrue(ab.LeftEndpoint == m - w / 2.0); Assert.IsTrue(ab.RightEndpoint == m + w / 2.0); }