예제 #1
0
        public void TestAurasInitialized()
        {
            var actions = BaseActionFactory.getBaseActionsByJobID(JobID.WHM);

            var action = actions["Aero"];

            Assert.IsFalse(action.AurasApplied.Count == 0);
            Assert.AreEqual("Aero", action.AurasApplied[0].Name);
        }
예제 #2
0
        public void TestActionDefaultValues()
        {
            var actions = BaseActionFactory.getBaseActionsByJobID(JobID.WHM);

            var action = actions["Presence of Mind"];

            Assert.AreEqual(3, action.Range);
            Assert.AreEqual(0, action.Radius);
        }
예제 #3
0
        public void TestActionAuraIntegrity()
        {
            var actions = BaseActionFactory.getBaseActionsByJobID(JobID.WHM);
            var action  = actions["Aero"];
            var aura    = action.AurasApplied[0];

            Assert.AreEqual("Aero", aura.Name);
            Assert.AreEqual(JobID.WHM, aura.JobID);
            Assert.AreEqual(18.0, aura.Duration);
            Assert.AreEqual(30.0, aura.DamageOverTimePotency);
            Assert.AreEqual(ActionAspect.MAGIC, aura.DamageAspect);
        }
예제 #4
0
        public void TestActionFlyweight()
        {
            var actions  = BaseActionFactory.getBaseActionsByJobID(JobID.WHM);
            var actions2 = BaseActionFactory.getBaseActionsByJobID(JobID.WHM);

            Assert.AreSame(actions, actions2);

            var action  = actions["Aero"];
            var action2 = actions2["Aero"];

            Assert.AreSame(action, action2);
        }
예제 #5
0
        public void TestActionIntegrity()
        {
            var actions = BaseActionFactory.getBaseActionsByJobID(JobID.WHM);

            var action = actions["Aero"];

            Assert.AreEqual("Aero", action.Name);
            Assert.AreEqual(JobID.WHM, action.JobID);
            Assert.AreEqual(CharacterStat.MIND, action.Stat);
            Assert.AreEqual(ActionAspect.MAGIC, action.Aspect);
            Assert.AreEqual(30.0, action.Potency);
            Assert.AreEqual(480.0, action.MpCost);
            Assert.AreEqual(2.5, action.RecastTime);
            Assert.AreEqual(25.0, action.Range);
        }
예제 #6
0
        public void TestActionListNotEmpty()
        {
            var actions = BaseActionFactory.getBaseActionsByJobID(JobID.WHM);

            Assert.IsTrue(actions.Count > 0);
        }
예제 #7
0
        public void TestActionInstantiationSuccess()
        {
            var actions = BaseActionFactory.getBaseActionsByJobID(JobID.WHM);

            Assert.IsInstanceOfType(actions, typeof(System.Collections.Generic.Dictionary <string, BaseAction>));
        }