public void When_ToBoolArray() { BitArray source = new BitArray(8, true); bool[] expected = new[] { true, true, true, true, true, true, true, true }; bool[] actual; actual = ByteExtensions.ToBoolArray(source); CollectionAssert.AreEqual(expected, actual); }