Example #1
0
        public void CanMoveToPosition()
        {
            var width  = 7;
            var height = 8;

            var rect = new Rect2d(1, 2, width, height);

            rect.MoveTo(3, 4);

            DolphAssert.EqualF(3, rect.X);
            DolphAssert.EqualF(4, rect.Y);
            DolphAssert.EqualF(width, rect.Width);
            DolphAssert.EqualF(height, rect.Height);
        }