public void Throttle_for_single_cost_elements_must_cancel_when_downstream_cancels()
{
this.AssertAllStagesStopped(() =>
{
var downstream = TestSubscriber.CreateProbe<int>(this);
Source.From(Enumerable.Range(1, 10))
.Throttle(1, TimeSpan.FromMilliseconds(300), 0, ThrottleMode.Shaping)
.RunWith(Sink.FromSubscriber(downstream), Materializer);
downstream.Cancel();
}, Materializer);
}