public void TestBoolArr() { var bits = nextFillBits(new bool[rng.Next(187)]); var bs = new BitString(bits); Assert.AreEqual(bits.Length, bs.Length, "Bool[]->BS length did not match"); for (int i = 0; i < bits.Length; i++) { Assert.AreEqual(bits[i], bs[i], "Bool[]->BS bits did not match"); } var rebits = bs.Bits(); Assert.AreEqual(bits, rebits, "BS->Bool[] did not match"); }