public void VerifyConnectionChangeEventHandlerIsImplementedForNetworkPipes() { // this just runs through event handlers to insure there are no notImplementedExceptions IInputNetworkPort port = new InputNetworkPort(); InputPortMgr mgr = new InputPortMgr(); mgr.Add(port); INetworkPipe nPipe = _pipeFactory.CreateNetworkPipe(); port.InboundPipe = nPipe; }
public void InputPortMgrHandlesConnectionChangeEventFiredByIInputNetworkPortWhenAConnectionChanged() { IInputNetworkPort port = new InputNetworkPort(); InputPortMgr mgr = new InputPortMgr(); var helper = new HelperForInputPortMgr(); mgr.ConnectionChanging += helper.ConnectionChanging_DummyHandler; mgr.ConnectionChanged += helper.ConnectionChanged_DummyHandler; mgr.Add(port); INetworkPipe nPipe = _pipeFactory.CreateNetworkPipe(); port.InboundPipe = nPipe; Assert.Equal(1, helper.ConnectionChanging_TimesCalled); Assert.Equal(1, helper.ConnectionChanged_TimesCalled); }