Akka.Streams.Tests.Dsl.FlowIntersperseSpec.A_Intersperse_must_inject_element_between_existing_elements_and_surround_with_start_and_end C# (CSharp) Method

A_Intersperse_must_inject_element_between_existing_elements_and_surround_with_start_and_end() private method

        public void A_Intersperse_must_inject_element_between_existing_elements_and_surround_with_start_and_end()
        {
            var probe =
                Source.From(new[] { 1, 2, 3 })
                    .Select(x => x.ToString())
                    .Intersperse("[", ",", "]")
                    .RunWith(this.SinkProbe<string>(), Materializer);

            probe.ExpectSubscription();
            probe.ToStrict(TimeSpan.FromSeconds(1)).Aggregate((s, s1) => s + s1).Should().Be("[1,2,3]");
        }