public void NewTreasureTest()
 {
     OneTreasure[] treasure = null; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     UpdatingLootsEventArgs target = new UpdatingLootsEventArgs( treasure, creature ); // TODO: 初始化为适当的值
     OneTreasure[] actual;
     actual = target.NewTreasure;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void IsCancelTest()
 {
     OneTreasure[] treasure = null; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     UpdatingLootsEventArgs target = new UpdatingLootsEventArgs( treasure, creature ); // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     target.IsCancel = expected;
     actual = target.IsCancel;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void UpdatingLootsEventArgsConstructorTest()
 {
     OneTreasure[] treasure = null; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     UpdatingLootsEventArgs target = new UpdatingLootsEventArgs( treasure, creature );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnUpdatingLoots( OneTreasure[] loots, BaseCreature creature )
        {
            EventHandler<UpdatingLootsEventArgs> tempBeforeEventArgs = m_EventUpdatingLoots;
            if ( tempBeforeEventArgs != null )
            {
                UpdatingLootsEventArgs eventArgs = new UpdatingLootsEventArgs( loots, creature );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }