Example #1
0
 private void CheckBuffer(FakeConsole console, char character, string buffer)
 {
     buffer = SanitizeBuffer(buffer, character);
     Assert.AreEqual(console.Width * console.Height, buffer.Length, "SanitizeBuffer did sth wrong!");
     Assert.That(
         console.BufferEquals(buffer),
         string.Format("Actual:\n{0}\nExpected:\n{1}",
                       MakeReadable(new string(console.Buffer), character, console.Width), MakeReadable(buffer, character, console.Width)
                       )
         );
 }