mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 00:46:39 +01:00
Rename to TerminalGuiFluentTesting
This commit is contained in:
28
TerminalGuiFluentAssertions/FakeOutput.cs
Normal file
28
TerminalGuiFluentAssertions/FakeOutput.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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) { }
|
||||
}
|
||||
Reference in New Issue
Block a user