public void UpdatedLootsEventArgsConstructorTest() { OneTreasure[] treasure = null; // TODO: 初始化为适当的值 BaseCreature creature = null; // TODO: 初始化为适当的值 UpdatedLootsEventArgs target = new UpdatedLootsEventArgs( treasure, creature ); Assert.Inconclusive( "TODO: 实现用来验证目标的代码" ); }
public void OldLootsTest() { OneTreasure[] treasure = null; // TODO: 初始化为适当的值 BaseCreature creature = null; // TODO: 初始化为适当的值 UpdatedLootsEventArgs target = new UpdatedLootsEventArgs( treasure, creature ); // TODO: 初始化为适当的值 OneTreasure[] actual; actual = target.OldLoots; Assert.Inconclusive( "验证此测试方法的正确性。" ); }
/// <summary> /// /// </summary> internal void OnUpdatedLoots( OneTreasure[] loots, BaseCreature creature ) { EventHandler<UpdatedLootsEventArgs> tempAfterEventArgs = m_EventUpdatedLoots; if ( tempAfterEventArgs != null ) { UpdatedLootsEventArgs eventArgs = new UpdatedLootsEventArgs( loots, creature ); tempAfterEventArgs( this, eventArgs ); } }