Exemplo n.º 1
0
        public void ReceiveDamage_Value_UpdateHealthOrBooleanFalse()
        {
            CharacterTestDummy character = new CharacterTestDummy("TestCharacter", 50, 10, 40);

            character.ReceiveDamage(5);
            Assert.AreEqual(character.IsDead, false);
        }
Exemplo n.º 2
0
        public void ReceiveDamage_Value_NotDefenseValuesUpdated()
        {
            CharacterTestDummy character = new CharacterTestDummy("TestCharacter", 50, 10, 40);

            character.ReceiveDamage(10);
            Assert.AreEqual(character.Defense, 40);
        }
Exemplo n.º 3
0
        public void ReceiveDamage_Value_NotNegativeLife()
        {
            CharacterTestDummy character = new CharacterTestDummy("TestCharacter", 50, 10, 40);

            character.ReceiveDamage(60);
            Assert.AreEqual(character.Health, 0);
            Assert.AreEqual(character.IsDead, true);
        }