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

A_Log_on_Source_must_follow_supervision_strategy_when_Exception_thrown() private method

        public void A_Log_on_Source_must_follow_supervision_strategy_when_Exception_thrown()
        {
            var ex = new TestException("test");
            var future = Source.From(Enumerable.Range(1, 5))
                .Log("hi", n => { throw ex; })
                .WithAttributes(ActorAttributes.CreateSupervisionStrategy(Deciders.ResumingDecider))
                .RunWith(Sink.Aggregate<int, int>(0, (i, i1) => i + i1), Materializer);

            future.Wait(TimeSpan.FromMilliseconds(500)).Should().BeTrue();
            future.Result.Should().Be(0);
        }
    }