示例#1
0
        public void ShouldGetBit(int index, byte[] leftBits, byte expectedResult)
        {
            dba.SetLeftBits(leftBits, 0, 0, leftBits.Length * 8);
            var actualResult = dba.GetBit(index);

            Assert.That(actualResult, Is.EqualTo(expectedResult));
        }
示例#2
0
 /// <summary>
 /// Gets the value of the bit identified with the given index within the bit array that underlies both the
 /// left and right bit arrays.
 /// </summary>
 /// <param name="index">The 0-based index of the bit within the bit array.</param>
 public byte GetBit(int index) => duoBitArray.GetBit(index);