Skip to content

Commit

Permalink
test: Add missing test for SetClipboardImage method (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dor-bl authored Mar 24, 2024
1 parent d0790e4 commit eab3020
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/integration/Android/ClipboardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -92,6 +93,19 @@ public void WhenGetClipboardImageGetClipboardShouldReturnNotImplementedException
Throws.TypeOf<NotImplementedException>());
}

[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<NotImplementedException>(() => _driver.SetClipboardImage(testImage));
}

[Test]
public void WhenGetClipboardUrlGetClipboardShouldReturnNotImplementedException()
{
Expand Down

0 comments on commit eab3020

Please sign in to comment.