public void EquipMethod_ShouldEquipItem_WhenCalled() { IWarriorHero hero = ClassFactory.CreateWarrior("Hero"); double armor = hero.Armor; double healthCap = hero.HealthCap; double healthRegen = hero.HealthRegen; int missChance = hero.MissChance; int criticalChance = hero.CriticalChance; double criticalDamage = hero.CriticalDamage; IEquippable <Item> shoulder = PlateArmorFactory.CreateShoulder("shoulder", 1, 1); shoulder.Value = 300; shoulder.Agility = 30; shoulder.Stragiht = 30; shoulder.Intellect = 30; hero.Equip(shoulder); Assert.IsTrue( armor != hero.Armor && healthCap != hero.HealthCap && healthRegen != hero.HealthRegen && missChance != hero.MissChance && criticalChance != hero.CriticalChance && criticalDamage != hero.CriticalDamage); }
public void PlateShoulderObject_ShouldIncreaseStats_WhenEquipped() { IWarriorHero hero = ClassFactory.CreateWarrior("Hero"); int agility = hero.Agility; int straight = hero.Straight; int intellect = hero.Intellect; double armor = hero.Armor; IPlate shoulder = PlateArmorFactory.CreateShoulder("shoulder", 1, 1); shoulder.Value = 1; shoulder.Agility = 1; shoulder.Stragiht = 1; shoulder.Intellect = 1; hero.Equip(shoulder); Assert.IsFalse( agility == hero.Agility && straight == hero.Straight && intellect == hero.Intellect && armor == hero.Armor); }