public void PositionateLeftRelativeAtBottomEdge() { var edge = new AtBottomEdge(); edge.Add(this.Left, this.Right); this.Right.Position = new Vector2(WIDTH / 2, HEIGHT / 2); AssertEdgeInside(edge); Assert.AreEqual(edge.Right.Position.Value.X + edge.Right.Height, edge.Left.Position.Value.X + edge.Left.Height); }
public void PositionateAbsoluteAtBottomEdge() { var edge = new AtBottomEdge(); edge.Add(this.Left, null); edge.Positionate(WIDTH, HEIGHT); Assert.IsNotNull(edge.Left.Position); Assert.AreEqual(edge.Left, this.Left); Assert.AreEqual(edge.Left.Position.Value.Y + edge.Left.Height, HEIGHT); }