public void IntegrationCompletedShouldDelegateToInnerTrigger() { var innerTriggerMock = this.mocks.Create <ITrigger>(MockBehavior.Strict).Object; Mock.Get(innerTriggerMock).Setup(_innerTrigger => _innerTrigger.IntegrationCompleted()).Verifiable(); var trigger = new ProjectTrigger { InnerTrigger = innerTriggerMock }; trigger.IntegrationCompleted(); mocks.VerifyAll(); }
public void IntegrationCompletedShouldDelegateToInnerTrigger() { var innerTriggerMock = this.mocks.StrictMock <ITrigger>(); Expect.Call(() => innerTriggerMock.IntegrationCompleted()); var trigger = new ProjectTrigger { InnerTrigger = innerTriggerMock }; mocks.ReplayAll(); trigger.IntegrationCompleted(); mocks.VerifyAll(); }