Skip to content

Commit

Permalink
Fix compilation of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Dec 7, 2023
1 parent abba03c commit 84734e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dotnet/test/common/DownloadsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void CanListDownloadableFiles()
{
DownloadWithBrowser();

List<string> names = ((RemoteWebDriver) driver).GetDownloadableFiles();
IReadOnlyList<string> names = ((RemoteWebDriver) driver).GetDownloadableFiles();
Assert.That(names, Contains.Item("file_1.txt"));
Assert.That(names, Contains.Item("file_2.jpg"));
}
Expand All @@ -52,7 +52,7 @@ public void CanDownloadFile()
{
DownloadWithBrowser();

List<string> names = ((RemoteWebDriver) driver).GetDownloadableFiles();
IReadOnlyList<string> names = ((RemoteWebDriver) driver).GetDownloadableFiles();
string fileName = names[0];
string targetDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());

Expand All @@ -72,7 +72,7 @@ public void CanDeleteFiles()

((RemoteWebDriver)driver).DeleteDownloadableFiles();

List<string> names = ((RemoteWebDriver) driver).GetDownloadableFiles();
IReadOnlyList<string> names = ((RemoteWebDriver) driver).GetDownloadableFiles();
Assert.IsEmpty(names, "The names list should be empty.");
}

Expand Down

0 comments on commit 84734e6

Please sign in to comment.