Ejemplo n.º 1
0
        public void PositionateRelativeEdgeWithNoRight()
        {
            var edge = new OnEdge();

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

            edge.Add(null, this.Right);
            edge.Positionate(WIDTH, HEIGHT);
        }
Ejemplo n.º 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);
        }