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
2 changes: 1 addition & 1 deletion src/Appium.Net/Appium/Service/AppiumCommandExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public async Task<Response> ExecuteAsync(Command commandToExecute)
}
return result;
}
catch (Exception e)
catch (Exception)
{
HandleCommandException(commandToExecute);

Expand Down
2 changes: 1 addition & 1 deletion src/Appium.Net/Appium/Windows/WindowsDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public override ReadOnlyCollection<string> Contexts

#endregion Context

public void HideKeyboard(string key) =>
public new void HideKeyboard(string key) =>
AppiumCommandExecutionHelper.HideKeyboard(this, key);

public void PressKeyCode(KeyEvent keyEvent) => throw new NotImplementedException();
Expand Down
4 changes: 2 additions & 2 deletions test/integration/Android/WaitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void WebDriverWaitElementNotFoundTestCase()
catch (Exception wx)
{
var excpetionType = wx.GetType();
Assert.That(typeof(WebDriverTimeoutException), Is.EqualTo(excpetionType));
Assert.That(excpetionType, Is.EqualTo(typeof(WebDriverTimeoutException)));
}
}

Expand All @@ -76,7 +76,7 @@ public void WebDriverWaitIsWaitingTestCase()
{
stopWatch.Stop();
TimeSpan ts = stopWatch.Elapsed;
Assert.That(_driverTimeOut.Seconds, Is.EqualTo(ts.Seconds));
Assert.That(ts.Seconds, Is.EqualTo(_driverTimeOut.Seconds));
}
}

Expand Down
4 changes: 4 additions & 0 deletions test/integration/IOS/ClipboardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void WhenSetClipboardUrl_GetClipboardUrlShouldReturnUrl()
}

[Test]
#pragma warning disable CA1416
public void WhenSetClipboardContentTypeIsImage_GetClipboardShouldReturnEncodedBase64String()
{
var testImageBytes = _driver.GetScreenshot().AsByteArray;
Expand All @@ -72,13 +73,16 @@ public void WhenSetClipboardContentTypeIsImage_GetClipboardShouldReturnEncodedBa
Assert.That(() => Regex.IsMatch(_driver.GetClipboard(ClipboardContentType.Image), Base64RegexPattern, RegexOptions.Multiline),
Is.True);
}
#pragma warning restore CA1416

[Test]
#pragma warning disable CA1416
public void WhenClipboardHasNoImage_GetClipboardImageShouldReturnNull()
{
_driver.SetClipboardText(ClipboardTestString);
Assert.That(() => _driver.GetClipboardImage(), Is.Null);
}
#pragma warning restore CA1416

[Test]
public void WhenClipboardIsEmpty_GetClipboardShouldReturnEmptyString()
Expand Down
2 changes: 1 addition & 1 deletion test/integration/ServerTests/StartingAppLocallyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void CheckThatServiceIsNotRunWhenTheCreatingOfANewSessionIsFailed()
{
driver = new IOSDriver(service, capabilities);
}
catch (Exception e)
catch (Exception)
{
Assert.That(!service.IsRunning);
return;
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Windows/StickyNotesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace Appium.Net.Integration.Tests.Windows
{
public class StickyNotesTest
public abstract class StickyNotesTest
{
private const string StickyNotesAppId = @"Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App";

Expand Down