public void EnumNoBytes()
        {
            CharEnumeratorForByteArray array = new CharEnumeratorForByteArray(new byte[0]);

            foreach (char ch in array)
            {
                Assert.Fail("Shouldn't have gotten any characters for an empty byte array.");
            }
        }
        public void EnumEvenBytes()
        {
            CharEnumeratorForByteArray array = new CharEnumeratorForByteArray(new byte[] { 0x01, 0x02, 0x03, 0x06 });

            char[] expected = new char[] { '\u0201', '\u0603' };
            int    i        = 0;

            foreach (char ch in array)
            {
                Assert.AreEqual(expected[i++], ch);
            }
            Assert.AreEqual(2, i);
        }
 public void NullConstructor()
 {
     CharEnumeratorForByteArray array = new CharEnumeratorForByteArray(null);
 }