BoardTests CreateBoard Method Delta Engine Documentation

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

public void CreateBoard()
Examples

[Test]
public void CreateBoard()
{
    Assert.AreEqual(Width, board.Width);
    Assert.AreEqual(Height, board.Height);
}
[Test]
public void CreateBoardFromData()
{
    board = new Board(CreateBoardData());
    Assert.AreEqual(board.Width, 2);
    Assert.AreEqual(board.Height, 3);
    Assert.AreEqual(board.GetColor(0, 1), Color.Red);
    Assert.AreEqual(board.GetColor(1, 2), Color.Orange);
}
See Also