Ejemplo n.º 1
0
        public void PlateShoulderObject_ShouldNotBeEquippedByNONPlateClass_WhenEquipped()
        {
            IMageHero hero      = ClassFactory.CreateMage("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.IsTrue(
                agility == hero.Agility &&
                straight == hero.Straight &&
                intellect == hero.Intellect &&
                armor == hero.Armor);
        }