コード例 #1
0
        public void CreateFromPoints(Point2[] points, BoundingRectangle expectedBoundingRectangle)
        {
            var actualBoundingRectangle = BoundingRectangle.CreateFrom(points);

            Assert.AreEqual(expectedBoundingRectangle, actualBoundingRectangle);
        }
コード例 #2
0
        public void CreateFromMinimumMaximum(Point2 minimum, Point2 maximum, BoundingRectangle expectedBoundingRectangle)
        {
            var actualBoundingRectangle = BoundingRectangle.CreateFrom(minimum, maximum);

            Assert.AreEqual(expectedBoundingRectangle, actualBoundingRectangle);
        }