public void UnpackSoloTest() { var packed = new BitsBoard(); packed[81] = true; var unpacked = BitsBoard.Unpack(packed); Assert.AreEqual(new byte[] { 82 }, GetSetBits(unpacked)); }
public void UnpackMultiTest() { var packed = new BitsBoard(); packed[81] = true; packed[82] = true; packed[83] = true; packed[84] = true; var unpacked = BitsBoard.Unpack(packed); Assert.AreEqual(new byte[] { 82, 84, 86, 88 }, GetSetBits(unpacked)); }