コード例 #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");
        }
コード例 #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");
        }