public void CheckAddItem(long strengthBonus, long agilityBonus, long intelligenceBonus, long hitpointsBonus, long damageBonus) { IItem commonItem = new CommonItem("item", strengthBonus, agilityBonus, intelligenceBonus, hitpointsBonus, damageBonus); testInstance.AddCommonItem(commonItem); Assert.AreEqual(agilityBonus, testInstance.TotalAgilityBonus); Assert.AreEqual(damageBonus, testInstance.TotalDamageBonus); Assert.AreEqual(hitpointsBonus, testInstance.TotalHitPointsBonus); Assert.AreEqual(intelligenceBonus, testInstance.TotalIntelligenceBonus); Assert.AreEqual(strengthBonus, testInstance.TotalStrengthBonus); long additionalValue = 3; IItem commonItem2 = new CommonItem("item2", additionalValue, additionalValue, additionalValue, additionalValue, additionalValue); testInstance.AddCommonItem(commonItem2); Assert.AreEqual(agilityBonus + additionalValue, testInstance.TotalAgilityBonus); Assert.AreEqual(damageBonus + additionalValue, testInstance.TotalDamageBonus); Assert.AreEqual(hitpointsBonus + additionalValue, testInstance.TotalHitPointsBonus); Assert.AreEqual(intelligenceBonus + additionalValue, testInstance.TotalIntelligenceBonus); Assert.AreEqual(strengthBonus + additionalValue, testInstance.TotalStrengthBonus); }