From eab30200f9636f3531c0c756bbca91965c5d1fc3 Mon Sep 17 00:00:00 2001 From: Dor Blayzer <59066376+Dor-bl@users.noreply.github.com> Date: Sun, 24 Mar 2024 07:14:39 +0200 Subject: [PATCH] test: Add missing test for SetClipboardImage method (#762) --- test/integration/Android/ClipboardTest.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/integration/Android/ClipboardTest.cs b/test/integration/Android/ClipboardTest.cs index 622f6583..11df1092 100644 --- a/test/integration/Android/ClipboardTest.cs +++ b/test/integration/Android/ClipboardTest.cs @@ -3,6 +3,7 @@ using OpenQA.Selenium.Appium.Android; using OpenQA.Selenium.Appium.Enums; using System; +using System.Drawing; using System.Runtime.Versioning; using System.Text.RegularExpressions; @@ -92,6 +93,19 @@ public void WhenGetClipboardImageGetClipboardShouldReturnNotImplementedException Throws.TypeOf()); } + [Test] +#if !NET48 + [SupportedOSPlatform("windows")] +#endif + public void WhenSetClipboardImageSetClipboardShouldReturnNotImplementedException() + { + // Arrange + Image testImage = new Bitmap(100, 100); // Create a sample image for testing + + // Act & Assert + _ = Assert.Throws(() => _driver.SetClipboardImage(testImage)); + } + [Test] public void WhenGetClipboardUrlGetClipboardShouldReturnNotImplementedException() {