예제 #1
0
        public void IterateAsciiRange()
        {
            uint[] expected = { 0x68, 0x65, 0x6c, 0x6c, 0x6f };
            var    it       = new Utf8String("hello").GetEnumerator();

            for (int i = 0; i < 5; i++)
            {
                Assert.IsTrue(it.MoveNext());
                Assert.That(it.Current.Index, Is.EqualTo(i));
                Assert.That(it.Current.Value, Is.EqualTo(expected[i]));
            }
        }