mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 01:07:58 +01:00
18 lines
394 B
C#
18 lines
394 B
C#
using Xunit;
|
|
|
|
namespace Terminal.Gui.Core {
|
|
public class ClipboardTests {
|
|
[Fact]
|
|
public void Contents_Gets_Sets ()
|
|
{
|
|
Application.Init (new FakeDriver (), new FakeMainLoop (() => FakeConsole.ReadKey (true)));
|
|
|
|
var clipText = "This is a clipboard unit test.";
|
|
Clipboard.Contents = clipText;
|
|
Assert.Equal (clipText, Clipboard.Contents);
|
|
|
|
Application.Shutdown ();
|
|
}
|
|
}
|
|
}
|