public void UpdatedLocationEventArgsConstructorTest() { Point3D location = new Point3D(); // TODO: 初始化为适当的值 WorldEntity gameEntity = null; // TODO: 初始化为适当的值 UpdatedLocationEventArgs target = new UpdatedLocationEventArgs( location, gameEntity ); Assert.Inconclusive( "TODO: 实现用来验证目标的代码" ); }
public void OldLocationTest() { Point3D location = new Point3D(); // TODO: 初始化为适当的值 WorldEntity gameEntity = null; // TODO: 初始化为适当的值 UpdatedLocationEventArgs target = new UpdatedLocationEventArgs( location, gameEntity ); // TODO: 初始化为适当的值 Point3D actual; actual = target.OldLocation; Assert.Inconclusive( "验证此测试方法的正确性。" ); }
/// <summary> /// /// </summary> internal void OnUpdatedLocation(Point3D point3D, WorldEntity gameEntity) { EventHandler <UpdatedLocationEventArgs> tempAfterEventArgs = m_EventUpdatedLocation; if (tempAfterEventArgs != null) { UpdatedLocationEventArgs eventArgs = new UpdatedLocationEventArgs(point3D, gameEntity); tempAfterEventArgs(this, eventArgs); } }
/// <summary> /// /// </summary> internal void OnUpdatedLocation( Point3D point3D, WorldEntity gameEntity ) { EventHandler<UpdatedLocationEventArgs> tempAfterEventArgs = m_EventUpdatedLocation; if ( tempAfterEventArgs != null ) { UpdatedLocationEventArgs eventArgs = new UpdatedLocationEventArgs( point3D, gameEntity ); tempAfterEventArgs( this, eventArgs ); } }