public void GameManager_InvalidTurn_ThrowsInvalidOperationException() { ConstantValidityGameAction action = new ConstantValidityGameAction(false); GameManager <GoFishGame> gm = new GameManager <GoFishGame>(); GoFishGame game = GameProvider.Game; Result result = gm.PerformAction(action, ref game); Assert.IsFalse(result.Success); }
public void GameManager_ValidTurn_PerformsTurn() { ConstantValidityGameAction action = new ConstantValidityGameAction(true); GameManager <GoFishGame> gm = new GameManager <GoFishGame>(); GoFishGame game = GameProvider.Game; gm.PerformAction(action, ref game); Assert.IsTrue(action.IsApplied); }