public void CreatureMovingInMapEventArgsConstructorTest()
        {
            Point3D      oldLocation            = new Point3D(); // TODO: 初始化为适当的值
            BaseCreature creature               = null;          // TODO: 初始化为适当的值
            BaseMap      map                    = null;          // TODO: 初始化为适当的值
            CreatureMovingInMapEventArgs target = new CreatureMovingInMapEventArgs(oldLocation, creature, map);

            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }
 public void OldLocationTest()
 {
     Point3D oldLocation = new Point3D(); // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     BaseMap map = null; // TODO: 初始化为适当的值
     CreatureMovingInMapEventArgs target = new CreatureMovingInMapEventArgs( oldLocation, creature, map ); // TODO: 初始化为适当的值
     Point3D actual;
     actual = target.OldLocation;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
        public void CreatureTest()
        {
            Point3D      oldLocation            = new Point3D();                                                // TODO: 初始化为适当的值
            BaseCreature creature               = null;                                                         // TODO: 初始化为适当的值
            BaseMap      map                    = null;                                                         // TODO: 初始化为适当的值
            CreatureMovingInMapEventArgs target = new CreatureMovingInMapEventArgs(oldLocation, creature, map); // TODO: 初始化为适当的值
            BaseCreature actual;

            actual = target.Creature;
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
 public void IsCancelTest()
 {
     Point3D oldLocation = new Point3D(); // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     BaseMap map = null; // TODO: 初始化为适当的值
     CreatureMovingInMapEventArgs target = new CreatureMovingInMapEventArgs( oldLocation, creature, map ); // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     target.IsCancel = expected;
     actual = target.IsCancel;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
        public void IsCancelTest()
        {
            Point3D      oldLocation            = new Point3D();                                                // TODO: 初始化为适当的值
            BaseCreature creature               = null;                                                         // TODO: 初始化为适当的值
            BaseMap      map                    = null;                                                         // TODO: 初始化为适当的值
            CreatureMovingInMapEventArgs target = new CreatureMovingInMapEventArgs(oldLocation, creature, map); // TODO: 初始化为适当的值
            bool expected = false;                                                                              // TODO: 初始化为适当的值
            bool actual;

            target.IsCancel = expected;
            actual          = target.IsCancel;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Example #6
0
        /// <summary>
        ///
        /// </summary>
        internal bool OnMoving(Point3D oldLocation, BaseCreature creature, BaseMap map)
        {
            EventHandler <CreatureMovingInMapEventArgs> tempBeforeEventArgs = m_EventCreatureMovingInMap;

            if (tempBeforeEventArgs != null)
            {
                CreatureMovingInMapEventArgs eventArgs = new CreatureMovingInMapEventArgs(oldLocation, creature, map);
                tempBeforeEventArgs(this, eventArgs);

                return(eventArgs.IsCancel);
            }

            return(false);
        }
 public void CreatureMovingInMapEventArgsConstructorTest()
 {
     Point3D oldLocation = new Point3D(); // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     BaseMap map = null; // TODO: 初始化为适当的值
     CreatureMovingInMapEventArgs target = new CreatureMovingInMapEventArgs( oldLocation, creature, map );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnMoving( Point3D oldLocation, BaseCreature creature, BaseMap map )
        {
            EventHandler<CreatureMovingInMapEventArgs> tempBeforeEventArgs = m_EventCreatureMovingInMap;
            if ( tempBeforeEventArgs != null )
            {
                CreatureMovingInMapEventArgs eventArgs = new CreatureMovingInMapEventArgs( oldLocation, creature, map );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }