示例#1
0
        public void DontRemoveBlankLines()
        {
            string text     = "Four score and\n\nseven years ago our fathers";
            string expected = "Four score and" + Environment.NewLine + Environment.NewLine + "seven years ago our fathers";
            string actual   = Reformat.Text(text);

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void RemoveWhiteSpace()
        {
            string text     = "  Four score and\n\t \tseven years ago our fathers";
            string expected = "Four score and seven years ago our fathers";
            string actual   = Reformat.Text(text);

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void RemoveNewLines()
        {
            string text     = "Four score and\nseven years\rago our\r\nfathers";
            string expected = "Four score and seven years ago our fathers";
            string actual   = Reformat.Text(text);

            Assert.AreEqual(expected, actual);
        }