Board Width Property Delta Engine Documentation

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

public int Width { get; }

Property Value

Type: Int32
Remarks

Tests: Drench.Tests.BoardTests
Examples

2 unit tests call Drench.Board.Width
[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