Esempio n. 1
0
        public void TestMonster_CheckDamageOrcVsOrc_BaseDamage()
        {
            // arrange
            var orcA = new Orc("Kuruk Stahlhand", 10, EnumElementType.Normal);
            var orcB = new Orc("Marok Blutklinge", 5, EnumElementType.Fire);

            // act
            var damageA = orcA.GetDamage(orcB);
            var damageB = orcB.GetDamage(orcA);

            // assert
            Assert.AreEqual(10, damageA);
            Assert.AreEqual(5, damageB);
        }
Esempio n. 2
0
        public void TestMonster_CheckDamageBugVsOrc_BugElementDamageOrcBaseDamage()
        {
            // arrange
            var bugA = new Bug("Herbey", 50, EnumElementType.Normal);
            var orcB = new Orc("Marok Blutklinge", 5, EnumElementType.Fire);

            // act
            var damageA = bugA.GetDamage(orcB);
            var damageB = orcB.GetDamage(bugA);

            // assert
            Assert.AreEqual(25, damageA);
            Assert.AreEqual(5, damageB);
        }
Esempio n. 3
0
        public void TestMonster_CheckDamageWizardVsOrc_OrcNoDamage()
        {
            // arrange
            var wizardA = new Wizard("Merlin", 10, EnumElementType.Water);
            var orcB    = new Orc("Marok Blutklinge", 5, EnumElementType.Fire);

            // act
            var damageA = wizardA.GetDamage(orcB);
            var damageB = orcB.GetDamage(wizardA);

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