CellTests CellHasRightDrawAreaInGrid Method Delta Engine Documentation

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

public void CellHasRightDrawAreaInGrid()
Examples

[Test, CloseAfterFirstFrame]
public void CellHasRightDrawAreaInGrid()
{
    var expectedTopLeft = new Vector2D(.45f, .45f);
    var expectedSize = new Size(.05f);
    var expectedDrawArea = new Rectangle(expectedTopLeft, expectedSize);
    Assert.AreEqual(cell.DrawArea, expectedDrawArea);
}
See Also