using System.Drawing;
namespace TerminalGuiFluentTesting;
internal class FakeOutput : IConsoleOutput
{
public IOutputBuffer? LastBuffer { get; set; }
public Size Size { get; set; }
///
public void Dispose () { }
///
public void Write (ReadOnlySpan text) { }
///
public void Write (IOutputBuffer buffer) { LastBuffer = buffer; }
///
public Size GetSize () { return Size; }
///
public void SetCursorVisibility (CursorVisibility visibility) { }
///
public void SetCursorPosition (int col, int row) { CursorPosition = new Point (col, row); }
///
public void SetSize (int width, int height)
{
Size = new (width, height);
}
///
/// The last value set by calling
///
public Point CursorPosition { get; private set; }
}