コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }