public void OutputPortMgrHandlesConnectionChangeEventFiredByIOutputDataPortWhenAConnectionChanged() { var port = new OutputDataPort(); var mgr = new OutputPortMgr(); var helper = new HelperForOutputPortMgr(); mgr.ConnectionChanging += helper.ConnectionChanging_DummyHandler; mgr.ConnectionChanged += helper.ConnectionChanged_DummyHandler; mgr.Add(port); IDataPipe dPipe = _pipeFactory.CreateDataPipe(); port.Add(dPipe); Assert.Equal(1, helper.ConnectionChanging_TimesCalled); Assert.Equal(1, helper.ConnectionChanged_TimesCalled); }
public void VerifyConnectionChangeEventHandlerIsImplementedForDataPipes() { // this just runs through event handlers to insure there are no notImplementedExceptions IOutputDataPort port = new OutputDataPort(); OutputPortMgr mgr = new OutputPortMgr(); mgr.Add(port); IDataPipe dPipe = _pipeFactory.CreateDataPipe(); port.Add(dPipe); }