public void ReadValue_MultipleTimes()
        {
            FlattenedSerializationReader <int> reader = new FlattenedSerializationReader <int> (new int[] { 1, 2, 3 });

            Assert.That(reader.ReadValue(), Is.EqualTo(1));
            Assert.That(reader.ReadValue(), Is.EqualTo(2));
            Assert.That(reader.ReadValue(), Is.EqualTo(3));
        }
        public void EndReached_True()
        {
            FlattenedSerializationReader <int> reader = new FlattenedSerializationReader <int> (new int[] { 1, 2, 3 });

            reader.ReadValue();
            reader.ReadValue();
            reader.ReadValue();
            Assert.That(reader.EndReached, Is.True);
        }
        public void ReadPosition()
        {
            FlattenedSerializationReader <int> reader = new FlattenedSerializationReader <int> (new int[] { 1, 2, 3 });

            Assert.That(reader.ReadPosition, Is.EqualTo(0));
            reader.ReadValue();
            Assert.That(reader.ReadPosition, Is.EqualTo(1));
            reader.ReadValue();
            Assert.That(reader.ReadPosition, Is.EqualTo(2));
            reader.ReadValue();
        }
        public void EndReached_Empty()
        {
            FlattenedSerializationReader <int> reader = new FlattenedSerializationReader <int> (new int[0]);

            Assert.That(reader.EndReached, Is.True);
        }