public void InvokeHandlerAfterRemoveTest() { WmSinkRemove wmSink = new WmSinkRemove(_wmHandlerList); wmSink.ExpectedWmHandlerInvokeCount = 0; wmSink.ExpectedWmHandler2InvokeCount = 1; NuGenWmHandler wmHandler = _wmHandlerList[WM_LBUTTONDOWN]; wmHandler(ref _m, this.BaseWndProc); wmSink.Verify(); }
public void InvokeHandlerAfterRemoveTest() { WmSinkRemove wmSink = new WmSinkRemove(_wmHandlerList); wmSink.ExpectedWmHandlerInvokeCount = 0; wmSink.ExpectedWmHandler2InvokeCount = 1; NuGenWmHandler wmHandler = _wmHandlerList[WM_LBUTTONDOWN]; wmHandler(ref _m, this.BaseWndProc); wmSink.Verify(); }