Akka.Tests.Actor.ReceiveActorTests.Given_actor_with_no_receive_specified_When_receiving_message_Then_it_should_be_unhandled C# (CSharp) Method

Given_actor_with_no_receive_specified_When_receiving_message_Then_it_should_be_unhandled() private method

        public void Given_actor_with_no_receive_specified_When_receiving_message_Then_it_should_be_unhandled()
        {
            //Given
            var system = ActorSystem.Create("test");
            var actor = system.ActorOf<NoReceiveActor>("no-receive-specified");
            system.EventStream.Subscribe(TestActor, typeof(UnhandledMessage));

            //When
            actor.Tell("Something");

            //Then
            ExpectMsg<UnhandledMessage>(m => ((string)m.Message) == "Something" && m.Recipient == actor);
            system.EventStream.Unsubscribe(TestActor, typeof(UnhandledMessage));
        }