Exemple #1
0
        public void ClearBuffer()
        {
            var capacity = 5;
            var cb       = new IntBuffer(new[] { 1, 2, 3 }, capacity);

            cb.Add(4);
            cb.Count.Should().Be(4);
            cb.Clear();
            cb.Count.Should().Be(0);
            cb.ToArray().Length.Should().Be(0);
        }