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); }
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); }