public void GetNativeTextTest() { using var cb = new Clipboard(); foreach (TextDataFormat e in Enum.GetValues(typeof(TextDataFormat))) { TestContext.WriteLine($"{e}: {cb.GetText(e)}"); } }
public void SetNativeTextHtmlTest() { using (var cb = new Clipboard()) cb.SetText(html, TextDataFormat.Html); using (var cb = new Clipboard()) { var outVal = cb.GetText(TextDataFormat.Html); Assert.That(outVal, Is.EqualTo(html)); } }