Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/integration/Android/ClipboardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ public void WhenSetClipboardContentTypeIsPlainTextGetClipboardShouldReturnEncode
public void WhenClipboardContentTypeIsPlainTextWithLabelGetClipboardTextShouldReturnActualText()
{
_driver.SetClipboardText(ClipboardTestString, label:"testing");
Assert.That(() => _driver.GetClipboardText(), Does.Match(ClipboardTestString));
Assert.That(_driver.GetClipboardText(), Does.Match(ClipboardTestString));
}

[Test]
public void WhenClipboardContentTypeIsPlainTextWithOutLabelGetClipboardTextShouldReturnActualText()
{
_driver.SetClipboardText(ClipboardTestString, null);
Assert.That(() => _driver.GetClipboardText(), Does.Match(ClipboardTestString));
Assert.That(_driver.GetClipboardText(), Does.Match(ClipboardTestString));
}

[Test]
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Appium.Net.Integration.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="NUnit" Version="4.5.1" />
<PackageReference Include="NUnit" Version="4.6.0" />
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
4 changes: 2 additions & 2 deletions test/integration/IOS/ClipboardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public void WhenClipboardContentTypeIsPlainText_GetClipboardTextShouldReturnActualText()
{
_driver.SetClipboardText(ClipboardTestString);
Assert.That(() => _driver.GetClipboardText(), Does.Match(ClipboardTestString));
Assert.That(_driver.GetClipboardText(), Does.Match(ClipboardTestString));
}

[Test]
Expand All @@ -60,7 +60,7 @@
const string urlString = "https://github.com/appium/dotnet-client";
_driver.SetClipboardUrl(urlString);

Assert.That(() => _driver.GetClipboardUrl(), Does.Match(urlString));
Assert.That(_driver.GetClipboardUrl(), Does.Match(urlString));
}

[Test]
Expand All @@ -78,7 +78,7 @@
public void WhenClipboardHasNoImage_GetClipboardImageShouldReturnNull()
{
_driver.SetClipboardText(ClipboardTestString);
Assert.That(() => _driver.GetClipboardImage(), Is.Null);

Check warning on line 81 in test/integration/IOS/ClipboardTest.cs

View workflow job for this annotation

GitHub Actions / test (macos-latest)

This call site is reachable on all platforms. 'Image' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 81 in test/integration/IOS/ClipboardTest.cs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

This call site is reachable on all platforms. 'Image' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 81 in test/integration/IOS/ClipboardTest.cs

View workflow job for this annotation

GitHub Actions / android-tests (32, google_apis)

This call site is reachable on all platforms. 'Image' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 81 in test/integration/IOS/ClipboardTest.cs

View workflow job for this annotation

GitHub Actions / ios-tests

This call site is reachable on all platforms. 'Image' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
}

[Test]
Expand Down
4 changes: 2 additions & 2 deletions test/integration/IOS/Device/AppTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void CanActivateViaScriptAppTest()
Assert.DoesNotThrow(() => _driver.ExecuteScript("mobile: activateApp",
new Dictionary<string, string> {{"bundleId", IosTestAppBundleId}}));

Assert.That(() => _driver.GetAppState(IosTestAppBundleId), Is.EqualTo(AppState.RunningInForeground));
Assert.That(_driver.GetAppState(IosTestAppBundleId), Is.EqualTo(AppState.RunningInForeground));

//Verify the expected app was activated
Assert.DoesNotThrow(() => _driver.FindElement(MobileBy.AccessibilityId(IosTestAppElement)));
Expand Down Expand Up @@ -111,7 +111,7 @@ public void CanLaunchAppWithArguments()
Assert.DoesNotThrow(() =>
_driver.LaunchAppWithArguments(UiCatalogAppTestAppBundleId, processArguments, environmentVariables));

Assert.That(() => _driver.GetAppState(UiCatalogAppTestAppBundleId), Is.EqualTo(AppState.RunningInForeground));
Assert.That(_driver.GetAppState(UiCatalogAppTestAppBundleId), Is.EqualTo(AppState.RunningInForeground));
Assert.DoesNotThrow(() => _driver.FindElement(MobileBy.AccessibilityId(UiCatalogTestAppElement)));
}

Expand Down
Loading