Ejemplo n.º 1
0
        public void ConvertNewLines(
            string inputText,
            string expected)
        {
            var textPreprocessor = new TextPreprocessor(inputText);

            Assert.Equal(expected, textPreprocessor.ToString());
        }
Ejemplo n.º 2
0
        public void TrimTrailingNewLine(
            string inputText,
            string expected)
        {
            var textPreprocessor = new TextPreprocessor(
                inputText,
                trimTrailingNewLine: true);

            Assert.Equal(expected, textPreprocessor.ToString());
        }
Ejemplo n.º 3
0
        public void ForceAscii(
            string inputText,
            string expected)
        {
            var textPreprocessor = new TextPreprocessor(
                inputText,
                forceAscii: true);

            Assert.Equal(expected, textPreprocessor.ToString());
        }
Ejemplo n.º 4
0
        public void ResolveTrigraphs(
            string inputText,
            string expected)
        {
            var textPreprocessor = new TextPreprocessor(
                inputText,
                resolveTrigraphs: true);

            Assert.Equal(expected, textPreprocessor.ToString());
        }
Ejemplo n.º 5
0
        public void EmptyStringRemainsEmpty()
        {
            var textPreprocessor = new TextPreprocessor(String.Empty);

            Assert.Equal(String.Empty, textPreprocessor.ToString());
        }