public void TestProbeParentActorCreator_CreateWithNullHandlers_ThrowsArgumentNullException() { //arrange TestProbeParentActorCreator sut = CreateTestProbeParentActorCreator(); //act Action act = () => sut.Create( TestProbeCreator, ExceptionWaiter, this, Decider, null); //assert act.Should().Throw <ArgumentNullException>(); }
public void TestProbeParentActorCreator_Create_TheReturnedActorsRefPropertyCanBeUsedToSuprviseOtherActors() { //arrange TestProbeParentActorCreator sut = CreateTestProbeParentActorCreator(); //act ITestProbeParentActor result = sut.Create( TestProbeCreator, ExceptionWaiter, this, Decider, Handlers); //assert Guid message = Guid.NewGuid(); TestActorRef <DummyActor> childActor = ActorOfAsTestActorRef <DummyActor>(result.Ref); childActor.Tell(message); result.TestProbe.ExpectMsg(message); }