public void runLeadingBits(ref int[] passed, int leadingBit, int totalBit, int value,
                               int expected1, int expected2, int expected3, int testNumber)
    {
        passed[1] += 1;
        int[] leadingBits = new int[3];

        leadingBits = SeedToByte.findLeadingBitValue(leadingBit, totalBit, value);

        if (leadingBits[0] == expected1 && leadingBits[1] == expected2 && leadingBits[2] == expected3)
        {
            passed[0] += 1;
        }
        else
        {
            Debug.Log("Leading bits test " + testNumber + " failed");
        }
    }