Skip to content

Commit

Permalink
[dotnet] Fix compilation warnings in cdp generator and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Jan 18, 2024
1 parent bd8c5d9 commit 4562685
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dotnet/test/common/CorrectEventFiringTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ public void SendingKeysToAFocusedElementShouldNotBlurThatElement()
{
System.Threading.Thread.Sleep(200);
}
catch (Exception e)
catch (Exception)
{
throw e;
throw;
}
}
if (!focused)
Expand Down
4 changes: 2 additions & 2 deletions dotnet/test/common/UnexpectedAlertBehaviorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ private Func<bool> ElementTextToBeEqual(IWebElement resultElement, string expect
{
return resultElement.Text == expectedAlertText;
}
catch (UnhandledAlertException e)
catch (UnhandledAlertException)
{
if (!silentlyHandlePrompt)
{
throw e;
throw;
}
}
catch (NoSuchElementException)
Expand Down
4 changes: 2 additions & 2 deletions dotnet/test/support/Events/EventFiringWebDriverTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ public void ShouldUnwrapElementArgsWhenCallingScripts()
{
testedDriver.ExecuteScript("foo", element);
}
catch (Exception e)
catch (Exception)
{
// This is the error we're trying to fix
throw e;
throw;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public TemplatesManager(CodeGenerationSettings settings)
}

/// <summary>
/// Returns a generator singleton for the specified template path.
/// Returns a generator singleton for the specified template settings.
/// </summary>
/// <param name="templatePath"></param>
/// <param name="templateSettings">The settings for a generator.</param>
/// <returns></returns>
public Func<object, string> GetGeneratorForTemplate(CodeGenerationTemplateSettings templateSettings)
{
Expand Down

0 comments on commit 4562685

Please sign in to comment.