예제 #1
0
    public void EquipmentUtility()
    {
        // Equip the ring and chestplate.
        equips.Equip(ring);
        equips.Equip(chestPlate);

        // Tests that the damage adding utility works.
        Assert.AreEqual(12, equips.GetDamageModifier());

        // Tests that the speed adding utility works.
        Assert.AreEqual(30, equips.GetSpeedModifier());


        // Tests that the armor rating utility works.
        Assert.AreEqual(11, equips.GetArmorRating());
    }