public void ReadEndOfNewLineCharTest()
        {
            char[]      buffer         = new char[2];
            int         bufferPosition = 0;
            StateReader target         = new DelimiterState(',', new EndState());

            target = target.ReadChar('\r', ref buffer, ref bufferPosition);

            Assert.AreNotEqual('\r', buffer[0]);
            Assert.AreEqual(0, bufferPosition);
            Assert.IsTrue(target is EndNewLinePatternState);

            target = target.ReadChar('\n', ref buffer, ref bufferPosition);

            Assert.AreNotEqual('\n', buffer[0]);
            Assert.AreEqual(0, bufferPosition);
            Assert.IsTrue(target is EndNewLinePatternState);
        }
        public void ReadDelimiterCharTest()
        {
            char[]         buffer         = new char[1];
            int            bufferPosition = 0;
            DelimiterState target         = new DelimiterState(',', new EndState());

            StateReader resultState = target.ReadChar(',', ref buffer, ref bufferPosition);

            Assert.AreNotEqual(',', buffer[0]);
            Assert.IsTrue(resultState is EndState);
        }