aboutsummaryrefslogtreecommitdiffstats
path: root/tests/slskd.Tests.Unit/Files/FileServiceTests.cs
diff options
context:
space:
mode:
authorPaul <jappe+github@posteo.de>2026-10-07 02:57:21 +0200
committerGitHub <noreply@github.com>2026-10-07 02:57:21 +0200
commit97bfb7c1777d944859f6c6eeef4894daa18203b8 (patch)
tree51b364fc76f7a0f37b1efcd7fe2295080ceb01cb /tests/slskd.Tests.Unit/Files/FileServiceTests.cs
parent357effeedf8439459004f113bb532a7011e95fe5 (diff)
parent7c302a753b1814345fcb26eb78dec97db6b698df (diff)
downloadslskd-97bfb7c1777d944859f6c6eeef4894daa18203b8.tar.gz
Merge branch 'master' into fix/upload-retry-button
Diffstat (limited to 'tests/slskd.Tests.Unit/Files/FileServiceTests.cs')
-rw-r--r--tests/slskd.Tests.Unit/Files/FileServiceTests.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/slskd.Tests.Unit/Files/FileServiceTests.cs b/tests/slskd.Tests.Unit/Files/FileServiceTests.cs
index d6c30316..05f967da 100644
--- a/tests/slskd.Tests.Unit/Files/FileServiceTests.cs
+++ b/tests/slskd.Tests.Unit/Files/FileServiceTests.cs
@@ -34,7 +34,7 @@ namespace slskd.Tests.Unit.Files
[Fact]
public async Task ListContentsAsync_Throws_ArgumentException_Given_Relative_Path()
{
- var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: "../"));
+ var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: "../"));
Assert.NotNull(ex);
Assert.IsType<ArgumentException>(ex);
@@ -53,7 +53,7 @@ namespace slskd.Tests.Unit.Files
}
});
- var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: Path.Combine(Temp, "foo")));
+ var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: Path.Combine(Temp, "foo")));
Assert.NotNull(ex);
Assert.IsType<UnauthorizedException>(ex);
@@ -71,7 +71,7 @@ namespace slskd.Tests.Unit.Files
}
});
- var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: Path.Combine(Temp, "downloads", "foo")));
+ var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: Path.Combine(Temp, "downloads", "foo")));
Assert.NotNull(ex);
Assert.IsType<NotFoundException>(ex);