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