示例#1
0
        public void Circumscribe()
        {
            Assert.AreEqual(rectD, RectD.Circumscribe(
                                rectD.TopLeft, rectD.TopRight, rectD.BottomLeft, rectD.BottomRight));

            Assert.AreEqual(rectF, RectF.Circumscribe(
                                rectF.TopLeft, rectF.TopRight, rectF.BottomLeft, rectF.BottomRight));

            // RectI.Circumscribe extends one past the specified points
            Assert.AreEqual(new RectI(1, 2, 5, 6), RectI.Circumscribe(
                                rectI.TopLeft, rectI.TopRight, rectI.BottomLeft, rectI.BottomRight));
        }