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

                return eventArgs.IsCancel;
            }

            return false;
        }