public void PositionateRelativeEdgeWithNoRight() { var edge = new OnEdge(); edge.Add(this.Left, null); edge.Positionate(WIDTH, HEIGHT); }
public void PositionateRelativeEdgeWithNoLeft() { var edge = new OnEdge(); edge.Add(null, this.Right); edge.Positionate(WIDTH, HEIGHT); }
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); }