Пример #1
0
 public void GetNativeTextTest()
 {
     using var cb = new Clipboard();
     foreach (TextDataFormat e in Enum.GetValues(typeof(TextDataFormat)))
     {
         TestContext.WriteLine($"{e}: {cb.GetText(e)}");
     }
 }
Пример #2
0
 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));
     }
 }