Example #1
0
 public void TestIfPlayerStateUpdates()
 {
     BoardStateManager.playerState = 1;
     BoardStateManager.UpdatePlayerState();
     Assert.That(BoardStateManager.playerState, Is.EqualTo(-1));
     BoardStateManager.UpdatePlayerState();
     Assert.That(BoardStateManager.playerState, Is.EqualTo(1));
 }
Example #2
0
 public void PlayerStateHasUpdated()
 {
     BoardStateManager.currentPlayer = 1;
     BoardStateManager.UpdatePlayerState();
     Assert.That(BoardStateManager.currentPlayer, Is.EqualTo(-1));
     BoardStateManager.UpdatePlayerState();
     Assert.That(BoardStateManager.currentPlayer, Is.EqualTo(1));
 }