public void NewAccessLevelTest()
 {
     AccessLevel newAccessLevel = new AccessLevel(); // TODO: 初始化为适当的值
     BaseCharacter character = null; // TODO: 初始化为适当的值
     UpdatingAccessLevelEventArgs target = new UpdatingAccessLevelEventArgs( newAccessLevel, character ); // TODO: 初始化为适当的值
     AccessLevel actual;
     actual = target.NewAccessLevel;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void IsCancelTest()
 {
     AccessLevel newAccessLevel = new AccessLevel(); // TODO: 初始化为适当的值
     BaseCharacter character = null; // TODO: 初始化为适当的值
     UpdatingAccessLevelEventArgs target = new UpdatingAccessLevelEventArgs( newAccessLevel, character ); // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     target.IsCancel = expected;
     actual = target.IsCancel;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
        /// <summary>
        ///
        /// </summary>
        internal bool OnUpdatingAccessLevel(AccessLevel accessLevel, BaseCharacter creature)
        {
            EventHandler <UpdatingAccessLevelEventArgs> tempBeforeEventArgs = m_EventUpdatingAccessLevel;

            if (tempBeforeEventArgs != null)
            {
                UpdatingAccessLevelEventArgs eventArgs = new UpdatingAccessLevelEventArgs(accessLevel, creature);
                tempBeforeEventArgs(this, eventArgs);

                return(eventArgs.IsCancel);
            }

            return(false);
        }
 public void UpdatingAccessLevelEventArgsConstructorTest()
 {
     AccessLevel newAccessLevel = new AccessLevel(); // TODO: 初始化为适当的值
     BaseCharacter character = null; // TODO: 初始化为适当的值
     UpdatingAccessLevelEventArgs target = new UpdatingAccessLevelEventArgs( newAccessLevel, character );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnUpdatingAccessLevel( AccessLevel accessLevel, BaseCharacter creature )
        {
            EventHandler<UpdatingAccessLevelEventArgs> tempBeforeEventArgs = m_EventUpdatingAccessLevel;
            if ( tempBeforeEventArgs != null )
            {
                UpdatingAccessLevelEventArgs eventArgs = new UpdatingAccessLevelEventArgs( accessLevel, creature );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }