RectangleTests Bottom Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Bottom()
Examples

[Test]
public void Bottom()
{
    var rect = new Rectangle(1, 2, 10, 20) { Bottom = 23 };
    Assert.AreEqual(3, rect.Top);
    Assert.AreEqual(23, rect.Bottom);
    Assert.AreEqual(20, rect.Height);
}
[Test]
public void BottomLeft()
{
    var rect = new Rectangle(1, 2, 10, 20);
    Assert.AreEqual(new Vector2D(1, 22), rect.BottomLeft);
}
[Test]
public void BottomRight()
{
    var rect = new Rectangle(1, 2, 10, 20);
    Assert.AreEqual(new Vector2D(11, 22), rect.BottomRight);
}
See Also