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); }
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); }
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); }