public void NewXTest()
 {
     float x = 0F; // TODO: 初始化为适当的值
     WorldEntity gameEntity = null; // TODO: 初始化为适当的值
     UpdatingXEventArgs target = new UpdatingXEventArgs( x, gameEntity ); // TODO: 初始化为适当的值
     float actual;
     actual = target.NewX;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void IsCancelTest()
 {
     float x = 0F; // TODO: 初始化为适当的值
     WorldEntity gameEntity = null; // TODO: 初始化为适当的值
     UpdatingXEventArgs target = new UpdatingXEventArgs( x, gameEntity ); // 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 OnUpdatingX(float x, WorldEntity gameEntity)
        {
            EventHandler <UpdatingXEventArgs> tempBeforeEventArgs = m_EventUpdatingX;

            if (tempBeforeEventArgs != null)
            {
                UpdatingXEventArgs eventArgs = new UpdatingXEventArgs(x, gameEntity);
                tempBeforeEventArgs(this, eventArgs);

                return(eventArgs.IsCancel);
            }

            return(false);
        }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnUpdatingX( float x, WorldEntity gameEntity )
        {
            EventHandler<UpdatingXEventArgs> tempBeforeEventArgs = m_EventUpdatingX;
            if ( tempBeforeEventArgs != null )
            {
                UpdatingXEventArgs eventArgs = new UpdatingXEventArgs( x, gameEntity );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }
 public void UpdatingXEventArgsConstructorTest()
 {
     float x = 0F; // TODO: 初始化为适当的值
     WorldEntity gameEntity = null; // TODO: 初始化为适当的值
     UpdatingXEventArgs target = new UpdatingXEventArgs( x, gameEntity );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }