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