public void A_Delay_must_fail_on_overflow_in_Fail_mode()
{
this.AssertAllStagesStopped(() =>
{
var actualError = Source.From(Enumerable.Range(1, 20))
.Delay(TimeSpan.FromMilliseconds(300), DelayOverflowStrategy.Fail)
.WithAttributes(Attributes.CreateInputBuffer(16, 16))
.RunWith(this.SinkProbe<int>(), Materializer)
.Request(100)
.ExpectError();
actualError.Should().BeOfType<BufferOverflowException>();
actualError.Message.Should().Be("Buffer overflow for Delay combinator (max capacity was: 16)!");
}, Materializer);
}