Akka.Streams.Tests.Dsl.ActorRefSourceSpec.A_ActorRefSource_must_emit_received_messages_to_the_stream C# (CSharp) Method

A_ActorRefSource_must_emit_received_messages_to_the_stream() private method

        public void A_ActorRefSource_must_emit_received_messages_to_the_stream()
        {
            var s = TestSubscriber.CreateManualProbe<int>(this);
            var actorRef = Source.ActorRef<int>(10, OverflowStrategy.Fail)
                .To(Sink.FromSubscriber(s))
                .Run(Materializer);
            var sub = s.ExpectSubscription();
            sub.Request(2);
            actorRef.Tell(1);
            s.ExpectNext(1);
            actorRef.Tell(2);
            s.ExpectNext(2);
            actorRef.Tell(3);
            s.ExpectNoMsg(TimeSpan.FromMilliseconds(500));
        }