Akka.Streams.Tests.Dsl.FlowLogSpec.A_Log_on_source_must_allow_extracting_value_to_be_logged C# (CSharp) Method

A_Log_on_source_must_allow_extracting_value_to_be_logged() private method

        public void A_Log_on_source_must_allow_extracting_value_to_be_logged()
        {
            Source.Single(Tuple.Create(1, "42"))
                .Log("flow-s3", t => t.Item2)
                .RunWith(Sink.Ignore<Tuple<int, string>>(), Materializer);

            var msgs = LogMessages(2);
            msgs[0].Should().Be("[flow-s3] Element: 42");
            msgs[1].Should().Be("[flow-s3] Upstream finished.");
        }