WindowTests CheckMessageBoxAndClipboard Method Delta Engine Documentation

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

public void CheckMessageBoxAndClipboard()
Examples

[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