public void EnsureByteMasksAreCorrectLengths() { Assert.That(BitPack.ByteMask(0) == 0x0, "A mask of size 0 should be 0x0!"); Assert.That(BitPack.ByteMask(1) == 0x1, "A mask of size 1 should be 0x1!"); Assert.That(BitPack.ByteMask(2) == 0x3, "A mask of size 2 should be 0x3!"); Assert.That(BitPack.ByteMask(4) == 0xF, "A mask of size 4 should be 0xF!"); Assert.That(BitPack.ByteMask(8) == 0xFF, "A mask of size 8 should be 0xFF!"); }