public void TellWaiter_TellMessageWithNoSender_WaitsForEvents() { //arrange TellWaiter sut = CreateTellWaiter(); //act sut.TellMessage(Waiter, this, Recipient, Message, ExpectedEventCount); //assert WaiterMock.Verify( waiter => waiter.Wait(), Times.Once); }
public void TellWaiter_TellMessage_StartsWaitingForEvents() { //arrange TellWaiter sut = CreateTellWaiter(); //act sut.TellMessage(Waiter, this, Recipient, Message, ExpectedEventCount, Sender); //assert WaiterMock.Verify( waiter => waiter.Start(this, ExpectedEventCount), Times.Once); }