public void NewNameTest()
 {
     string strName = string.Empty; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     UpdatingNameEventArgs target = new UpdatingNameEventArgs( strName, creature ); // TODO: 初始化为适当的值
     string actual;
     actual = target.NewName;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void IsCancelTest()
 {
     string strName = string.Empty; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     UpdatingNameEventArgs target = new UpdatingNameEventArgs( strName, creature ); // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     target.IsCancel = expected;
     actual = target.IsCancel;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
Exemplo n.º 3
0
        /// <summary>
        /// 
        /// </summary>
        internal bool OnUpdatingName( string strName, BaseItem baseItem )
        {
            EventHandler<UpdatingNameEventArgs> tempBeforeEventArgs = m_EventUpdatingName;
            if ( tempBeforeEventArgs != null )
            {
                UpdatingNameEventArgs eventArgs = new UpdatingNameEventArgs( strName, baseItem );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }
 public void UpdatingNameEventArgsConstructorTest()
 {
     string strName = string.Empty; // TODO: 初始化为适当的值
     BaseCreature creature = null; // TODO: 初始化为适当的值
     UpdatingNameEventArgs target = new UpdatingNameEventArgs( strName, creature );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }