示例#1
0
        public void PositionateRelativeEdgeWithNoRight()
        {
            var edge = new OnEdge();

            edge.Add(this.Left, null);
            edge.Positionate(WIDTH, HEIGHT);
        }
示例#2
0
        public void PositionateRelativeEdgeWithNoLeft()
        {
            var edge = new OnEdge();

            edge.Add(null, this.Right);
            edge.Positionate(WIDTH, HEIGHT);
        }
示例#3
0
        public void PositionateLeftRelativeOnEdge()
        {
            var rightPosition = new Vector2(WIDTH / 2, HEIGHT / 2);
            var leftPosition  = rightPosition - new Vector2(0, this.Left.Height);

            var edge = new OnEdge();

            edge.Add(this.Left, this.Right);
            this.Right.Position = rightPosition;

            AssertEdgeBasic(edge, leftPosition, rightPosition);
            AssertEdgeVerticesEqualDimensions(edge);
        }