public void RemoveItemTest()
 {
     BaseItem removeItem = null; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     RemovingItemCallEventArgs target = new RemovingItemCallEventArgs( removeItem, creature ); // TODO: 初始化为适当的值
     BaseItem actual;
     actual = target.RemoveItem;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void IsCancelTest()
 {
     BaseItem removeItem = null; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     RemovingItemCallEventArgs target = new RemovingItemCallEventArgs( removeItem, creature ); // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     target.IsCancel = expected;
     actual = target.IsCancel;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void RemovingItemCallEventArgsConstructorTest()
 {
     BaseItem removeItem = null; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     RemovingItemCallEventArgs target = new RemovingItemCallEventArgs( removeItem, creature );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnRemovingItem( BaseItem removeItem, BaseCreature creature )
        {
            EventHandler<RemovingItemCallEventArgs> tempBeforeEventArgs = m_EventRemovingItem;
            if ( tempBeforeEventArgs != null )
            {
                RemovingItemCallEventArgs eventArgs = new RemovingItemCallEventArgs( removeItem, creature );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }