public void When_ToByteArray()
        {
            BitArray source = new BitArray(8, false);

            byte[] expected = new byte[] { 0 };
            byte[] actual;
            actual = ByteExtensions.ToByteArray(source);

            CollectionAssert.AreEqual(expected, actual);
        }