Ejemplo n.º 1
0
        public void WillCountMobileGround()
        {
            Engine.Player = new PlayerMobile(0x01);

            Mobile mobile = new Mobile(0x02)
            {
                ID = 0x190
            };
            Mobile mobile2 = new Mobile(0x03)
            {
                ID = 0x191
            };

            Engine.Mobiles.Add(mobile);
            Engine.Mobiles.Add(mobile2);

            int count = ObjectCommands.CountTypeGround(0x190, -1, 5);

            Assert.AreEqual(1, count);

            Engine.Mobiles.Clear();
            Engine.Player = null;
        }