public void EnsureUShortMasksAreCorrectLengths() { Assert.That(BitPack.UShortMask(0) == 0x0, "A mask of size 0 should be 0x0!"); Assert.That(BitPack.UShortMask(1) == 0x1, "A mask of size 1 should be 0x1!"); Assert.That(BitPack.UShortMask(2) == 0x3, "A mask of size 2 should be 0x3!"); Assert.That(BitPack.UShortMask(4) == 0xF, "A mask of size 4 should be 0xF!"); Assert.That(BitPack.UShortMask(8) == 0xFF, "A mask of size 8 should be 0xFF!"); Assert.That(BitPack.UShortMask(12) == 0xFFF, "A mask of size 12 should be 0xFFF!"); Assert.That(BitPack.UShortMask(16) == 0xFFFF, "A mask of size 16 should be 0xFFFF!"); }