Пример #1
0
    public void UnpackSoloTest()
    {
        var packed = new BitsBoard();

        packed[81] = true;
        var unpacked = BitsBoard.Unpack(packed);

        Assert.AreEqual(new byte[] { 82 }, GetSetBits(unpacked));
    }
Пример #2
0
    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));
    }