예제 #1
0
        public void Remove_single_tests(byte valueToRemove, byte len, int[] expectedArr, int expectedLen)
        {
            // Arrange
            var arr = new Arr04();

            for (var i = 0; i < N; i++)
            {
                arr[i] = (byte)(i + 5);
            }

            // Act
            arr.Remove(valueToRemove, ref len);

            // Assert
            Assert.Equal(expectedLen, len);
            Assert.Equal(expectedArr, arr.AsArray().Select(i => (int)i));
        }
예제 #2
0
 public void Remove(int t)
 => _items.Remove((byte)t, ref _size);