Example #1
0
        public void TestCure2()
        {
            Character  character  = CreateCharacter();
            int        maxHealth  = character.MaxHealth;
            Iteration1 iteration1 = new Iteration1(character);

            iteration1.Cure(200);
            Assert.AreEqual(maxHealth, character.Health, "Cure limit");
        }
Example #2
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");
        }
Example #3
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");
        }