private void UsePowerAbilityAndAssertFailure(Action beforeAction = null) { var ability = new TestPowerAbility(this.Player); this.PerformActionAndAssertResult(false, () => new UsePowerAbilityAction(this.Player, ability), beforeAction); this.Player.TestHit.Should().BeFalse(); }
private void UsePowerAbilityAndAssertSuccess(Action beforeAction = null, WorkerResource expectedValue = null) { var ability = new TestPowerAbility(this.Player); this.PerformActionAndAssertResult(true, () => new UsePowerAbilityAction(this.Player, ability), beforeAction); this.Player.TestHit.Should().BeTrue(); }