public void CreatureEnteringMapEventArgsConstructorTest() { BaseCreature creature = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 CreatureEnteringMapEventArgs target = new CreatureEnteringMapEventArgs(creature, map); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
public void CreatureTest() { BaseCreature creature = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 CreatureEnteringMapEventArgs target = new CreatureEnteringMapEventArgs( creature, map ); // TODO: 初始化为适当的值 BaseCreature actual; actual = target.Creature; Assert.Inconclusive( "验证此测试方法的正确性。" ); }
public void CreatureTest() { BaseCreature creature = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 CreatureEnteringMapEventArgs target = new CreatureEnteringMapEventArgs(creature, map); // TODO: 初始化为适当的值 BaseCreature actual; actual = target.Creature; Assert.Inconclusive("验证此测试方法的正确性。"); }
public void IsCancelTest() { BaseCreature creature = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 CreatureEnteringMapEventArgs target = new CreatureEnteringMapEventArgs( creature, map ); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; target.IsCancel = expected; actual = target.IsCancel; Assert.AreEqual( expected, actual ); Assert.Inconclusive( "验证此测试方法的正确性。" ); }
public void IsCancelTest() { BaseCreature creature = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 CreatureEnteringMapEventArgs target = new CreatureEnteringMapEventArgs(creature, map); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; target.IsCancel = expected; actual = target.IsCancel; Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> /// /// </summary> internal bool OnEnteringMap(BaseCreature creature, BaseMap map) { EventHandler <CreatureEnteringMapEventArgs> tempBeforeEventArgs = m_EventCreatureEnteringMap; if (tempBeforeEventArgs != null) { CreatureEnteringMapEventArgs eventArgs = new CreatureEnteringMapEventArgs(creature, map); tempBeforeEventArgs(this, eventArgs); return(eventArgs.IsCancel); } return(false); }
public void CreatureEnteringMapEventArgsConstructorTest() { BaseCreature creature = null; // TODO: 初始化为适当的值 BaseMap map = null; // TODO: 初始化为适当的值 CreatureEnteringMapEventArgs target = new CreatureEnteringMapEventArgs( creature, map ); Assert.Inconclusive( "TODO: 实现用来验证目标的代码" ); }
/// <summary> /// /// </summary> internal bool OnEnteringMap( BaseCreature creature, BaseMap map ) { EventHandler<CreatureEnteringMapEventArgs> tempBeforeEventArgs = m_EventCreatureEnteringMap; if ( tempBeforeEventArgs != null ) { CreatureEnteringMapEventArgs eventArgs = new CreatureEnteringMapEventArgs( creature, map ); tempBeforeEventArgs( this, eventArgs ); return eventArgs.IsCancel; } return false; }