コード例 #1
0
        [TestCase(7, 0b10000000)] // 0x80
        public void ShouldGetMaskForBitIndex(int bitIndex, byte expectedMask)
        {
            var actualMask = bmu.GetMaskForBitIndex(bitIndex);

            Assert.That(actualMask, Is.EqualTo(expectedMask));
        }
コード例 #2
0
 public byte GetMaskForBitIndex(int lsb0BitIndex) => bitMaskUtilities.GetMaskForBitIndex(lsb0BitIndex);