Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
RikuVirtanen committed Dec 19, 2023
1 parent 0245395 commit 8f24270
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Frends.FTP.ListFiles/Frends.FTP.ListFiles.Tests/UnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,13 @@ public void ListFiles_PasswordIsNULLAndUserIsNotNull_Test()
/// Test without host. Returns an error.
/// </summary>
[Test]
public void ListFiles_HostIsNULL_Test()
public async void ListFiles_HostIsNULL_Test()
{
var connection = FtpHelper.GetFtpConnection();
connection.Address = "";
connection.Address = string.Empty;

var result = await FTP.ListFiles(input, connection, default);
Assert.AreEqual(0, result.Files.Count);

var ex = Assert.ThrowsAsync<ArgumentException>(async () => await FTP.ListFiles(input, connection, default));
Assert.AreEqual("Unable to establish the socket: No such host is known.", ex.Message);
Expand Down

0 comments on commit 8f24270

Please sign in to comment.