Akka.Streams.Tests.Dsl.FlowThrottleSpec.Throttle_for_single_cost_elements_must_properly_combine_shape_and_throttle_modes C# (CSharp) Метод

Throttle_for_single_cost_elements_must_properly_combine_shape_and_throttle_modes() приватный Метод

        public void Throttle_for_single_cost_elements_must_properly_combine_shape_and_throttle_modes()
        {
            this.AssertAllStagesStopped(() =>
            {
                Source.From(Enumerable.Range(1, 5))
                    .Throttle(1, TimeSpan.FromMilliseconds(100), 5, ThrottleMode.Shaping)
                    .Throttle(1, TimeSpan.FromMilliseconds(100), 5, ThrottleMode.Enforcing)
                    .RunWith(this.SinkProbe<int>(), Materializer)
                    .Request(5)
                    .ExpectNext(1, 2, 3, 4, 5)
                    .ExpectComplete();
            }, Materializer);
        }
FlowThrottleSpec