Пример #1
0
        public void TestHealthAfterCure()
        {
            // Arrange.
            archerProof.Helmet = helmet;

            // Act.
            archerProof.ReceiveAttack(10000);
            archerProof.Cure();

            // Assert.
            Assert.AreEqual(100, archerProof.Health);
        }
        public void Healyh_Is_Modified_By_Cure()        //Prueba que el metodo Cure modifica la vida
        {
            legolas.AddItem(helmet);
            legolas.AddItem(helmet);
            legolas.AddItem(helmet);
            legolas.AddItem(helmet);
            legolas.ReceiveAttack(nurgargan);
            int actualLife = legolas.Health;

            legolas.Cure();

            Assert.AreNotEqual(actualLife, legolas.Health);
        }
        public void SaludDelEnanoIgualA100TrasSerCurado()
        {
            archer1.ReceiveAttack(dwarf1.AttackValue);
            archer1.Cure();
            string expected = "100";

            Assert.Pass(expected, archer1.Health);
        }
        public void CorrectHealthRestore()
        {
            int dummy1InitialHealth = this.dummy.Health;
            int damage = 50;

            dummy.ReceiveAttack(damage);
            dummy.Cure();
            Assert.AreEqual(dummy1InitialHealth, dummy.Health);
        }
Пример #5
0
 public void Cure_Life100()
 {
     daniel.ReceiveAttack(100);
     daniel.Cure();
     Assert.AreEqual(daniel.Health, 100);
 }
Пример #6
0
 public void TestCure()
 {
     Legolas.ReceiveAttack(200000);
     Legolas.Cure();
     Assert.AreEqual(100, Legolas.Health);
 }
Пример #7
0
 public void TestCure()
 {
     archer.ReceiveAttack(101);
     archer.Cure();
     Assert.AreEqual(archer.Health, 100);
 }