Window CopyTextToClipboard Method Delta Engine Documentation

Namespace: DeltaEngine.Core
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

void CopyTextToClipboard(
	string text
)
Remarks

Tests: DeltaEngine.Tests.Core.WindowTests
Examples

1 unit tests call DeltaEngine.Core.Window.CopyTextToClipboard(System.String)
[Test]
public void CheckMessageBoxAndClipboard()
{
    Assert.AreEqual("OK", window.ShowMessageBox("Test Message", "Any Message", new string[0]));
    using (var logger = new MockLogger())
    {
        window.CopyTextToClipboard("Test");
        Assert.AreEqual("Copied to mock clipboard: Test", logger.LastMessage);
    }
}
See Also