From 8f24270498014579728a38ca667698186bb1afdb Mon Sep 17 00:00:00 2001 From: Riku Virtanen Date: Tue, 19 Dec 2023 14:17:00 +0200 Subject: [PATCH] Debug --- .../Frends.FTP.ListFiles.Tests/UnitTests.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Frends.FTP.ListFiles/Frends.FTP.ListFiles.Tests/UnitTests.cs b/Frends.FTP.ListFiles/Frends.FTP.ListFiles.Tests/UnitTests.cs index 6f9959e..217966d 100644 --- a/Frends.FTP.ListFiles/Frends.FTP.ListFiles.Tests/UnitTests.cs +++ b/Frends.FTP.ListFiles/Frends.FTP.ListFiles.Tests/UnitTests.cs @@ -304,10 +304,13 @@ public void ListFiles_PasswordIsNULLAndUserIsNotNull_Test() /// Test without host. Returns an error. /// [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(async () => await FTP.ListFiles(input, connection, default)); Assert.AreEqual("Unable to establish the socket: No such host is known.", ex.Message);