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