public void CharacterLeavingMapEventArgsConstructorTest()
        {
            BaseCharacter character             = null; // TODO: 初始化为适当的值
            BaseMap       map                   = null; // TODO: 初始化为适当的值
            CharacterLeavingMapEventArgs target = new CharacterLeavingMapEventArgs(character, map);

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

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

            target.IsCancel = expected;
            actual          = target.IsCancel;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Beispiel #6
0
        /// <summary>
        ///
        /// </summary>
        internal bool OnLeavingMap(BaseCharacter character, BaseMap map)
        {
            EventHandler <CharacterLeavingMapEventArgs> tempBeforeEventArgs = m_EventCharacterLeavingMap;

            if (tempBeforeEventArgs != null)
            {
                CharacterLeavingMapEventArgs eventArgs = new CharacterLeavingMapEventArgs(character, map);
                tempBeforeEventArgs(this, eventArgs);

                return(eventArgs.IsCancel);
            }

            return(false);
        }
 public void CharacterLeavingMapEventArgsConstructorTest()
 {
     BaseCharacter character = null; // TODO: 初始化为适当的值
     BaseMap map = null; // TODO: 初始化为适当的值
     CharacterLeavingMapEventArgs target = new CharacterLeavingMapEventArgs( character, map );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnLeavingMap( BaseCharacter character, BaseMap map )
        {
            EventHandler<CharacterLeavingMapEventArgs> tempBeforeEventArgs = m_EventCharacterLeavingMap;
            if ( tempBeforeEventArgs != null )
            {
                CharacterLeavingMapEventArgs eventArgs = new CharacterLeavingMapEventArgs( character, map );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }