Akka.Tests.Actor.LocalActorRefProviderSpec.An_ActorRefFactory_must_only_create_one_instance_of_an_actor_from_within_the_same_message_invocation C# (CSharp) Method

An_ActorRefFactory_must_only_create_one_instance_of_an_actor_from_within_the_same_message_invocation() private method

        public void An_ActorRefFactory_must_only_create_one_instance_of_an_actor_from_within_the_same_message_invocation()
        {
            var supervisor = Sys.ActorOf(Props.Create<ActorWithDuplicateChild>());
            EventFilter.Exception<InvalidActorNameException>(message: "Actor name \"duplicate\" is not unique!").ExpectOne(() =>
                {
                    supervisor.Tell("");
                });
        }