public void UpdatedXEventArgsConstructorTest() { float x = 0F; // TODO: 初始化为适当的值 WorldEntity gameEntity = null; // TODO: 初始化为适当的值 UpdatedXEventArgs target = new UpdatedXEventArgs( x, gameEntity ); Assert.Inconclusive( "TODO: 实现用来验证目标的代码" ); }
public void OldXTest() { float x = 0F; // TODO: 初始化为适当的值 WorldEntity gameEntity = null; // TODO: 初始化为适当的值 UpdatedXEventArgs target = new UpdatedXEventArgs( x, gameEntity ); // TODO: 初始化为适当的值 float actual; actual = target.OldX; Assert.Inconclusive( "验证此测试方法的正确性。" ); }
/// <summary> /// /// </summary> internal void OnUpdatedX(float x, WorldEntity gameEntity) { EventHandler <UpdatedXEventArgs> tempAfterEventArgs = m_EventUpdatedX; if (tempAfterEventArgs != null) { UpdatedXEventArgs eventArgs = new UpdatedXEventArgs(x, gameEntity); tempAfterEventArgs(this, eventArgs); } }
/// <summary> /// /// </summary> internal void OnUpdatedX( float x, WorldEntity gameEntity ) { EventHandler<UpdatedXEventArgs> tempAfterEventArgs = m_EventUpdatedX; if ( tempAfterEventArgs != null ) { UpdatedXEventArgs eventArgs = new UpdatedXEventArgs( x, gameEntity ); tempAfterEventArgs( this, eventArgs ); } }