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

                return eventArgs.IsCancel;
            }

            return false;
        }