Example #1
0
        public void IndexOf_tests(byte value, int expectedIndex)
        {
            // Arrange
            var arr = new Arr04();

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

            // Act
            var index = arr.IndexOf(value);

            // Assert
            Assert.Equal(expectedIndex, index);
        }
Example #2
0
 public bool Contains(int t1, int t2)
 => _items.IndexOf((byte)((t1 << 4) | t2), _size) != -1;