public void ReadFullNewLinePatternTest() { InitialState returnToState = new InitialState(',', '"'); NewLinePatternState target = new NewLinePatternState(returnToState); char[] buffer = new char[1]; int bufferPosition = 0; StateReader actualNextState = target.ReadChar((int)'\r', ref buffer, ref bufferPosition); Assert.AreNotEqual('\r', buffer[0]); Assert.IsTrue(actualNextState.GetType() == typeof(EndNewLinePatternState)); actualNextState = actualNextState.ReadChar((int)'\n', ref buffer, ref bufferPosition); Assert.AreNotEqual('\r', buffer[0]); Assert.IsTrue(actualNextState.IsEndState); Assert.IsFalse(actualNextState.ContinueReadingLine); }