Esempio n. 1
0
        public void ItemMovingInMapEventArgsConstructorTest()
        {
            Point3D  oldLocation            = new Point3D(); // TODO: 初始化为适当的值
            BaseItem item                   = null;          // TODO: 初始化为适当的值
            BaseMap  map                    = null;          // TODO: 初始化为适当的值
            ItemMovingInMapEventArgs target = new ItemMovingInMapEventArgs(oldLocation, item, map);

            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }
Esempio n. 2
0
        public void ItemTest()
        {
            Point3D  oldLocation            = new Point3D();                                        // TODO: 初始化为适当的值
            BaseItem item                   = null;                                                 // TODO: 初始化为适当的值
            BaseMap  map                    = null;                                                 // TODO: 初始化为适当的值
            ItemMovingInMapEventArgs target = new ItemMovingInMapEventArgs(oldLocation, item, map); // TODO: 初始化为适当的值
            BaseItem actual;

            actual = target.Item;
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        internal bool OnMoving(Point3D oldLocation, BaseItem item, BaseMap map)
        {
            EventHandler <ItemMovingInMapEventArgs> tempBeforeEventArgs = m_EventItemMovingInMap;

            if (tempBeforeEventArgs != null)
            {
                ItemMovingInMapEventArgs eventArgs = new ItemMovingInMapEventArgs(oldLocation, item, map);
                tempBeforeEventArgs(this, eventArgs);

                return(eventArgs.IsCancel);
            }

            return(false);
        }
Esempio n. 4
0
        public void IsCancelTest()
        {
            Point3D  oldLocation            = new Point3D();                                        // TODO: 初始化为适当的值
            BaseItem item                   = null;                                                 // TODO: 初始化为适当的值
            BaseMap  map                    = null;                                                 // TODO: 初始化为适当的值
            ItemMovingInMapEventArgs target = new ItemMovingInMapEventArgs(oldLocation, item, map); // TODO: 初始化为适当的值
            bool expected                   = false;                                                // TODO: 初始化为适当的值
            bool actual;

            target.IsCancel = expected;
            actual          = target.IsCancel;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnMoving( Point3D oldLocation, BaseItem item, BaseMap map )
        {
            EventHandler<ItemMovingInMapEventArgs> tempBeforeEventArgs = m_EventItemMovingInMap;
            if ( tempBeforeEventArgs != null )
            {
                ItemMovingInMapEventArgs eventArgs = new ItemMovingInMapEventArgs( oldLocation, item, map );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }