public void RemoveExpired_OneExpired_ExpiredStreamRemoved() { var streams = new Http2StreamStack(10); streams.Push(CreateStream(streamId: 1, expirationTicks: 200)); streams.RemoveExpired(300); Assert.Equal(0, streams.Count); Assert.Equal(default, streams._array[0]);
public void RemoveExpired_NoneExpired_NoOp() { var streams = new Http2StreamStack(10); streams.Push(CreateStream(streamId: 1, expirationTicks: 200)); streams.RemoveExpired(100); Assert.Equal(1, streams.Count); Assert.Equal(1, ((Http2Stream)streams._array[0]).StreamId); }
public void RemoveExpired_Empty_NoOp() { var streams = new Http2StreamStack(10); streams.RemoveExpired(100); }