|
@@ -102,8 +102,8 @@ namespace Terminal.Gui.DriverTests {
|
|
|
[Fact, AutoInitShutdown (useFakeClipboard: false)]
|
|
|
public void IsSupported_Get ()
|
|
|
{
|
|
|
- if (Clipboard.IsSupported) Assert.True (Clipboard.IsSupported);
|
|
|
-else Assert.False (Clipboard.IsSupported);
|
|
|
+ if (Clipboard.IsSupported) Assert.True (Clipboard.IsSupported);
|
|
|
+ else Assert.False (Clipboard.IsSupported);
|
|
|
}
|
|
|
|
|
|
[Fact, AutoInitShutdown (useFakeClipboard: false)]
|
|
@@ -129,15 +129,15 @@ else Assert.False (Clipboard.IsSupported);
|
|
|
public void TrySetClipboardData_Sets_The_OS_Clipboard ()
|
|
|
{
|
|
|
var clipText = "The TrySetClipboardData_Sets_The_OS_Clipboard unit test pasted this to the OS clipboard.";
|
|
|
- if (Clipboard.IsSupported) Assert.True (Clipboard.TrySetClipboardData (clipText));
|
|
|
-else Assert.False (Clipboard.TrySetClipboardData (clipText));
|
|
|
+ if (Clipboard.IsSupported) Assert.True (Clipboard.TrySetClipboardData (clipText));
|
|
|
+ else Assert.False (Clipboard.TrySetClipboardData (clipText));
|
|
|
|
|
|
Application.Iteration += () => Application.RequestStop ();
|
|
|
|
|
|
Application.Run ();
|
|
|
|
|
|
- if (Clipboard.IsSupported) Assert.Equal (clipText, Clipboard.Contents);
|
|
|
-else Assert.NotEqual (clipText, Clipboard.Contents);
|
|
|
+ if (Clipboard.IsSupported) Assert.Equal (clipText, Clipboard.Contents);
|
|
|
+ else Assert.NotEqual (clipText, Clipboard.Contents);
|
|
|
}
|
|
|
|
|
|
// Disabling this test for now because it is not reliable
|