public void ItemEnteringMapEventArgsConstructorTest()
        {
            BaseItem item = null; // TODO: 初始化为适当的值
            BaseMap  map  = null; // TODO: 初始化为适当的值
            ItemEnteringMapEventArgs target = new ItemEnteringMapEventArgs(item, map);

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

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

            target.IsCancel = expected;
            actual          = target.IsCancel;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Ejemplo n.º 6
0
        /// <summary>
        ///
        /// </summary>
        internal bool OnEnteringMap(BaseItem item, BaseMap map)
        {
            EventHandler <ItemEnteringMapEventArgs> tempBeforeEventArgs = m_EventItemEnteringMap;

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

                return(eventArgs.IsCancel);
            }

            return(false);
        }
 public void ItemEnteringMapEventArgsConstructorTest()
 {
     BaseItem item = null; // TODO: 初始化为适当的值
     BaseMap map = null; // TODO: 初始化为适当的值
     ItemEnteringMapEventArgs target = new ItemEnteringMapEventArgs( item, map );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
Ejemplo n.º 8
0
        /// <summary>
        /// 
        /// </summary>
        internal bool OnEnteringMap( BaseItem item, BaseMap map )
        {
            EventHandler<ItemEnteringMapEventArgs> tempBeforeEventArgs = m_EventItemEnteringMap;
            if ( tempBeforeEventArgs != null )
            {
                ItemEnteringMapEventArgs eventArgs = new ItemEnteringMapEventArgs( item, map );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }