public void ReadAndReset() { //**************************************** string MyResult1, MyResult2; //**************************************** using (var Reader = new CharTextReader(_TestInput)) { MyResult1 = Reader.ReadToEnd(); Reader.Reset(); MyResult2 = Reader.ReadToEnd(); } Assert.AreEqual(_TestOutput, MyResult1); Assert.AreEqual(_TestOutput, MyResult2); }
public void ReadToEnd() { string MyResult; using (var Reader = new CharTextReader(_TestInput)) { MyResult = Reader.ReadToEnd(); } Assert.AreEqual(_TestOutput, MyResult); }