public void A_LocalActorRefs_ActorCell_must_not_retain_its_original_Props_when_Terminated()
{
var parent = Sys.ActorOf(Props.Create(() => new ParentActor()));
parent.Tell("GetChild", TestActor);
var child = ExpectMsg<IActorRef>();
var childPropsBeforeTermination = ((LocalActorRef)child).Underlying.Props;
Assert.Equal(Props.Empty, childPropsBeforeTermination);
Watch(parent);
Sys.Stop(parent);
ExpectTerminated(parent);
AwaitAssert(() =>
{
var childPropsAfterTermination = ((LocalActorRef)child).Underlying.Props;
Assert.NotEqual(childPropsBeforeTermination, childPropsAfterTermination);
Assert.Equal(ActorCell.TerminatedProps, childPropsAfterTermination);
});
}