Exemplo n.º 1
0
        public void SpellMiss_PVE_SameLevel()
        {
            float expected = 0.04f;

            var levelsBelowTarget = 0;

            var miss = Mechanics.GetSpellMiss(levelsBelowTarget);

            Assert.AreEqual(expected, miss, TOLERANCE);
        }
Exemplo n.º 2
0
        public void SpellMiss_PVE_BelowTargetBy3()
        {
            float expected = 0.17f;

            int levelsBelowTarget = 3;

            var miss = Mechanics.GetSpellMiss(-levelsBelowTarget);

            Assert.AreEqual(expected, miss, TOLERANCE);
        }
Exemplo n.º 3
0
        public void SpellMiss_PVE_AboveTargetBy1()
        {
            float expected = 0.03f;

            var levelsAboveTarget = 1;

            var miss = Mechanics.GetSpellMiss(levelsAboveTarget);

            Assert.AreEqual(expected, miss, TOLERANCE);
        }