Akka.Streams.Tests.Dsl.GraphMatValueSpec.A_Graph_with_materialized_value_must_allow_exposing_the_materialized_value_as_port C# (CSharp) Method

A_Graph_with_materialized_value_must_allow_exposing_the_materialized_value_as_port() private method

        public void A_Graph_with_materialized_value_must_allow_exposing_the_materialized_value_as_port()
        {
            var t =
                FoldFeedbackSource.SelectAsync(4, x => x)
                    .Select(x => x + 100)
                    .ToMaterialized(Sink.First<int>(), Keep.Both)
                    .Run(Materializer);
            var f1 = t.Item1;
            var f2 = t.Item2;
            f1.Wait(TimeSpan.FromSeconds(3)).Should().BeTrue();
            f1.Result.Should().Be(55);

            f2.Wait(TimeSpan.FromSeconds(3)).Should().BeTrue();
            f2.Result.Should().Be(155);
        }