public void Trim_both_the_beginning_and_end() { using (TextReader reader = new TrimmingStringReader(" this is plain text ")) { string result = reader.ReadToEnd(); Assert.AreEqual("this is plain text", result); } }
public void Nothing_to_trim() { using (TextReader reader = new TrimmingStringReader("this is plain text")) { string result = reader.ReadToEnd(); Assert.AreEqual("this is plain text", result); } }