Пример #1
0
        public void ShouldClearBit(int index, byte[] leftBits, byte[] expectedResult)
        {
            dba.SetLeftBits(leftBits, 0, 0, leftBits.Length * 8);
            dba.ClearBit(index);
            var actualResult = dba.ToByteArray();

            Assert.That(actualResult, Is.EqualTo(expectedResult));
        }
Пример #2
0
 /// <summary>
 /// Clears 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 void ClearBit(int index)
 {
     duoBitArray.ClearBit(index);
     mask.ClearBit(index);
 }