public void TestProbeResolver_TellMessageSender_TellsChild() { //arrange TestProbeResolver sut = CreateTestProbeResolver(); //act sut.TellMessage(Recipient, Message, Sender, ExpectedChildrenCount); //assert ChildTellerMock.Verify( teller => teller.TellMessage(ChildWaiterMock.Object, this, Recipient, Message, ExpectedChildrenCount, Sender), Times.Once); }
public void ConcreteResolver_TellMessageSender_TellsChild() { //arrange ConcreteResolver sut = CreateConcreteResolver(ImmutableDictionary <Type, Func <ActorBase> > .Empty); //act sut.TellMessage(Recipient, Message, Sender, ExpectedChildrenCount); //assert ChildTellerMock.Verify( teller => teller.TellMessage(ChildWaiterMock.Object, this, Recipient, Message, ExpectedChildrenCount, Sender), Times.Once); }
public void UnitTestFramework_TellMessageAndWaitForChildren_TellsChild() { //arrange UnitTestFramework <DummyActor> sut = CreateUnitTestFramework(); //act sut.TellMessageAndWaitForChildren(Message, Sender, ExpectedChildCount); //assert ChildTellerMock.Verify( teller => teller.TellMessage( ChildWaiter, this, SutActor, Message, ExpectedChildCount, Sender), Times.Once); }