Exemplo n.º 1
0
        public void TestMonster_CheckDamageFireelfVsFireelf_BaseDamage()
        {
            // arrange
            var fireelfA = new Fireelf("Fedrian Waterseer", 10, EnumElementType.Water);
            var fireelfB = new Fireelf("Cinthiael Woodrunner", 5, EnumElementType.Normal);

            // act
            var damageA = fireelfA.GetDamage(fireelfB);
            var damageB = fireelfB.GetDamage(fireelfA);

            // assert
            Assert.AreEqual(10, damageA);
            Assert.AreEqual(5, damageB);
        }
Exemplo n.º 2
0
        public void TestMonster_CheckDamageDragonVsFireelf_DragonNoDamage()
        {
            // arrange
            var dragonA  = new Dragon("Smaug", 10, EnumElementType.Fire);
            var fireelfB = new Fireelf("Cinthiael Woodrunner", 5, EnumElementType.Normal);

            // act
            var damageA = dragonA.GetDamage(fireelfB);
            var damageB = fireelfB.GetDamage(dragonA);


            // assert
            Assert.AreEqual(0, damageA);
            Assert.AreEqual(5, damageB);
        }