Beispiel #1
0
        public void DismissesTrustWithLowMpp(int trustMpp)
        {
            // Setup fixture
            context.SetPlayerHealthy();
            context.AddTrustToParty();
            context.MockAPI.PartyMember[1].MPPCurrent = trustMpp;

            context.Config.BattleLists["Trusts"].Actions.Add(new BattleAbility()
            {
                IsEnabled       = true,
                Name            = "Trust",
                ResummonOnLowMP = true,
                ResummonMPLow   = 0,
                ResummonMPHigh  = 50
            });

            // Exercise system
            sut.Run(context);
            // Verify outcome
            Assert.Equal("/refa Trust", context.MockAPI.Windower.LastCommand);
            // Teardown
        }