public void GivenBufferListWhenDisposeTwiceShouldNotThrow() { var list = new BufferList <int>(1000, TimeSpan.FromSeconds(10)); list.Dispose(); list.Invoking(x => x.Dispose()).Should().NotThrow(); }
public void GivenBufferListWhenEmptyEventsShouldNotThrow() { var list = new BufferList <int>(1000, TimeSpan.FromSeconds(10)) { 1 }; list.Invoking(x => x.Clear()).Should().NotThrow(); list.Should().BeEmpty(); }