public void RemovingChildItemCallEventArgsConstructorTest() { BaseItem removeChildItem = null; // TODO: 初始化为适当的值 BaseItem item = null; // TODO: 初始化为适当的值 RemovingChildItemCallEventArgs target = new RemovingChildItemCallEventArgs(removeChildItem, item); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
public void RemoveChildItemTest() { BaseItem removeChildItem = null; // TODO: 初始化为适当的值 BaseItem item = null; // TODO: 初始化为适当的值 RemovingChildItemCallEventArgs target = new RemovingChildItemCallEventArgs(removeChildItem, item); // TODO: 初始化为适当的值 BaseItem actual; actual = target.RemoveChildItem; Assert.Inconclusive("验证此测试方法的正确性。"); }
public void IsCancelTest() { BaseItem removeChildItem = null; // TODO: 初始化为适当的值 BaseItem item = null; // TODO: 初始化为适当的值 RemovingChildItemCallEventArgs target = new RemovingChildItemCallEventArgs(removeChildItem, item); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; target.IsCancel = expected; actual = target.IsCancel; Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> /// /// </summary> internal bool OnRemovingChildItem( BaseItem removeChildItem, BaseItem item ) { EventHandler<RemovingChildItemCallEventArgs> tempBeforeEventArgs = m_EventRemovingChildItem; if ( tempBeforeEventArgs != null ) { RemovingChildItemCallEventArgs eventArgs = new RemovingChildItemCallEventArgs( removeChildItem, item ); tempBeforeEventArgs( this, eventArgs ); return eventArgs.IsCancel; } return false; }