SinglePlayerLogicTests WhenBoardIsAllTheSameColorGameIsFinished Method Delta Engine Documentation

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

public void WhenBoardIsAllTheSameColorGameIsFinished()
Examples

[Test]
public void WhenBoardIsAllTheSameColorGameIsFinished()
{
    bool isGameFinished = false;
    logic.GameFinished += () => isGameFinished = true;
    MakeWinningMove();
    Assert.IsTrue(logic.IsGameOver);
    Assert.IsTrue(isGameFinished);
    Assert.AreEqual(BoardTests.Width * BoardTests.Height, logic.GetPlayerScore(0));
}
See Also