Exemplo n.º 1
0
        public void GivenBufferListWhenDisposeTwiceShouldNotThrow()
        {
            var list = new BufferList <int>(1000, TimeSpan.FromSeconds(10));

            list.Dispose();
            list.Invoking(x => x.Dispose()).Should().NotThrow();
        }
Exemplo n.º 2
0
        public void GivenBufferListWhenEmptyEventsShouldNotThrow()
        {
            var list = new BufferList <int>(1000, TimeSpan.FromSeconds(10))
            {
                1
            };

            list.Invoking(x => x.Clear()).Should().NotThrow();
            list.Should().BeEmpty();
        }