mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
* touching publish.yml * Moved Examples into ./Examples * Moved Benchmarks into ./Tests * Moved Benchmarks into ./Tests * Moved UICatalog into ./Examples * Moved UICatalog into ./Examples 2 * Moved tests into ./Tests * Updated nuget
29 lines
683 B
C#
29 lines
683 B
C#
using System.Drawing;
|
|
using Terminal.Gui;
|
|
|
|
namespace TerminalGuiFluentTesting;
|
|
|
|
internal class FakeOutput : IConsoleOutput
|
|
{
|
|
public IOutputBuffer LastBuffer { get; set; }
|
|
public Size Size { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public void Dispose () { }
|
|
|
|
/// <inheritdoc/>
|
|
public void Write (ReadOnlySpan<char> text) { }
|
|
|
|
/// <inheritdoc/>
|
|
public void Write (IOutputBuffer buffer) { LastBuffer = buffer; }
|
|
|
|
/// <inheritdoc/>
|
|
public Size GetWindowSize () { return Size; }
|
|
|
|
/// <inheritdoc/>
|
|
public void SetCursorVisibility (CursorVisibility visibility) { }
|
|
|
|
/// <inheritdoc/>
|
|
public void SetCursorPosition (int col, int row) { }
|
|
}
|