public void WorldEntityEnteringMapEventArgsConstructorTest()
        {
            WorldEntity entity = null; // TODO: 初始化为适当的值
            BaseMap     map    = null; // TODO: 初始化为适当的值
            WorldEntityEnteringMapEventArgs target = new WorldEntityEnteringMapEventArgs(entity, map);

            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }
 public void GameEntityTest()
 {
     WorldEntity entity = null; // TODO: 初始化为适当的值
     BaseMap map = null; // TODO: 初始化为适当的值
     WorldEntityEnteringMapEventArgs target = new WorldEntityEnteringMapEventArgs( entity, map ); // TODO: 初始化为适当的值
     WorldEntity actual;
     actual = target.GameEntity;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
        public void GameEntityTest()
        {
            WorldEntity entity = null;                                                                 // TODO: 初始化为适当的值
            BaseMap     map    = null;                                                                 // TODO: 初始化为适当的值
            WorldEntityEnteringMapEventArgs target = new WorldEntityEnteringMapEventArgs(entity, map); // TODO: 初始化为适当的值
            WorldEntity actual;

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

            target.IsCancel = expected;
            actual          = target.IsCancel;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Exemplo n.º 6
0
        /// <summary>
        /// 
        /// </summary>
        internal bool OnEnteringMap( WorldEntity worldEntity, BaseMap map )
        {
            EventHandler<WorldEntityEnteringMapEventArgs> tempBeforeEventArgs = m_EventWorldEntityEnteringMap;
            if ( tempBeforeEventArgs != null )
            {
                WorldEntityEnteringMapEventArgs eventArgs = new WorldEntityEnteringMapEventArgs( worldEntity, map );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }
Exemplo n.º 7
0
        /// <summary>
        ///
        /// </summary>
        internal bool OnEnteringMap(WorldEntity worldEntity, BaseMap map)
        {
            EventHandler <WorldEntityEnteringMapEventArgs> tempBeforeEventArgs = m_EventWorldEntityEnteringMap;

            if (tempBeforeEventArgs != null)
            {
                WorldEntityEnteringMapEventArgs eventArgs = new WorldEntityEnteringMapEventArgs(worldEntity, map);
                tempBeforeEventArgs(this, eventArgs);

                return(eventArgs.IsCancel);
            }

            return(false);
        }
 public void WorldEntityEnteringMapEventArgsConstructorTest()
 {
     WorldEntity entity = null; // TODO: 初始化为适当的值
     BaseMap map = null; // TODO: 初始化为适当的值
     WorldEntityEnteringMapEventArgs target = new WorldEntityEnteringMapEventArgs( entity, map );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }