public void PlateHeadObject_ShouldNotBeEquippedByNONPlateClass_WhenEquipped() { IMageHero hero = ClassFactory.CreateMage("hero"); int agility = hero.Agility; int straight = hero.Straight; int intellect = hero.Intellect; double armor = hero.Armor; IPlate head = PlateArmorFactory.CreateHead("head", 1, 1); head.Value = 1; head.Agility = 1; head.Stragiht = 1; head.Intellect = 1; hero.Equip(head); Assert.IsTrue( agility == hero.Agility && straight == hero.Straight && intellect == hero.Intellect && armor == hero.Armor); }
public void PlateHeadObject_ShouldIncreaseStats_WhenEquipped() { IWarriorHero hero = ClassFactory.CreateWarrior("Hero"); int agility = hero.Agility; int straight = hero.Straight; int intellect = hero.Intellect; double armor = hero.Armor; IPlate head = PlateArmorFactory.CreateHead("head", 1, 1); head.Value = 1; head.Agility = 1; head.Stragiht = 1; head.Intellect = 1; hero.Equip(head); Assert.IsFalse( agility == hero.Agility && straight == hero.Straight && intellect == hero.Intellect && armor == hero.Armor); }