public void PlayerLostHealth() { var state = CreatePlayerAttackReadyState(); var action = new AttackPlayerAction("1", 0); Assert.True(action.CanApply(state)); action.Apply(state); Assert.True(state.Users[1].Health == state.Users[1].MaxHealth - state.Users[0].TableSet[0].Damage); }
public void PlayerAttackSpentActions() { var state = CreatePlayerAttackReadyState(); var action = new AttackPlayerAction("1", 0); Assert.True(action.CanApply(state)); action.Apply(state); var card = state.Users[0].TableSet[0]; Assert.True(card.Actions < card.MaxActions); }