public void ConvertNewLines( string inputText, string expected) { var textPreprocessor = new TextPreprocessor(inputText); Assert.Equal(expected, textPreprocessor.ToString()); }
public void TrimTrailingNewLine( string inputText, string expected) { var textPreprocessor = new TextPreprocessor( inputText, trimTrailingNewLine: true); Assert.Equal(expected, textPreprocessor.ToString()); }
public void ForceAscii( string inputText, string expected) { var textPreprocessor = new TextPreprocessor( inputText, forceAscii: true); Assert.Equal(expected, textPreprocessor.ToString()); }
public void ResolveTrigraphs( string inputText, string expected) { var textPreprocessor = new TextPreprocessor( inputText, resolveTrigraphs: true); Assert.Equal(expected, textPreprocessor.ToString()); }
public void EmptyStringRemainsEmpty() { var textPreprocessor = new TextPreprocessor(String.Empty); Assert.Equal(String.Empty, textPreprocessor.ToString()); }