public void WorldEntityMovingInMapEventArgsConstructorTest() { Point3D oldLocation = new Point3D(); // TODO: 初始化为适当的值 WorldEntity entity = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 WorldEntityMovingInMapEventArgs target = new WorldEntityMovingInMapEventArgs(oldLocation, entity, map); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
public void GameEntityTest() { Point3D oldLocation = new Point3D(); // TODO: 初始化为适当的值 WorldEntity entity = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 WorldEntityMovingInMapEventArgs target = new WorldEntityMovingInMapEventArgs(oldLocation, entity, map); // TODO: 初始化为适当的值 WorldEntity actual; actual = target.GameEntity; Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> /// /// </summary> internal bool OnMoving(Point3D oldLocation, WorldEntity worldEntity, BaseMap map) { EventHandler <WorldEntityMovingInMapEventArgs> tempBeforeEventArgs = m_EventWorldEntityMovingInMap; if (tempBeforeEventArgs != null) { WorldEntityMovingInMapEventArgs eventArgs = new WorldEntityMovingInMapEventArgs(oldLocation, worldEntity, map); tempBeforeEventArgs(this, eventArgs); return(eventArgs.IsCancel); } return(false); }
public void IsCancelTest() { Point3D oldLocation = new Point3D(); // TODO: 初始化为适当的值 WorldEntity entity = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 WorldEntityMovingInMapEventArgs target = new WorldEntityMovingInMapEventArgs(oldLocation, entity, map); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; target.IsCancel = expected; actual = target.IsCancel; Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> /// /// </summary> internal bool OnMoving( Point3D oldLocation, WorldEntity worldEntity, BaseMap map ) { EventHandler<WorldEntityMovingInMapEventArgs> tempBeforeEventArgs = m_EventWorldEntityMovingInMap; if ( tempBeforeEventArgs != null ) { WorldEntityMovingInMapEventArgs eventArgs = new WorldEntityMovingInMapEventArgs( oldLocation, worldEntity, map ); tempBeforeEventArgs( this, eventArgs ); return eventArgs.IsCancel; } return false; }