Namespace: Drench.Tests.Logics
Assembly: Drench.Tests (in Drench.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: Drench.Tests (in Drench.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void GameOverWhenOnlyPlayerColorsRemain() { bool isGameFinished = false; logic.GameFinished += () => isGameFinished = true; SetFirstThreeColumnsToBlue(); SetNextThreeColumnsToGreen(); SetRemainingColumnsToRed(); logic.MakeMove(Color.Green); Assert.IsTrue(isGameFinished); Assert.AreEqual(6 * BoardTests.Height, logic.GetPlayerScore(0)); }
See Also