Exemplo n.º 1
0
        public void TestCure()
        {
            Character  character     = CreateCharacter();
            int        initialHealth = character.Health;
            Iteration1 iteration1    = new Iteration1(character);

            iteration1.Damage(900);
            iteration1.Cure(900);
            Assert.AreEqual(initialHealth, character.Health, "Cure done");
        }
Exemplo n.º 2
0
        public void TestDamage()
        {
            Character  character      = CreateCharacter();
            int        healthCalc     = character.Health - 900;
            int        healthExpected = healthCalc < 0 ? 0 : healthCalc;
            Iteration1 iteration1     = new Iteration1(character);

            iteration1.Damage(900);
            Assert.AreEqual(healthExpected, character.Health, "Damage done");
        }