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 SecondMoveChangesBottomRightColorAndActivePlayer() { bool isGameFinished = false; logic.GameFinished += () => isGameFinished = true; logic.MakeMove(Color.Red); logic.MakeMove(Color.Green); Assert.AreEqual(Color.Green, logic.Board.GetColor(BoardTests.Width - 1, BoardTests.Height - 1)); Assert.IsFalse(isGameFinished); Assert.AreEqual(0, logic.ActivePlayer); Assert.AreEqual(1, logic.GetPlayerScore(1)); }
See Also