diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-04-06 17:25:46 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-04-06 17:25:46 -0500 |
| commit | 831e9ce49abbcc64a7b75c6fb2c90ad20b233e00 (patch) | |
| tree | 82a17f1bd101bb772f6e1a4c45b45007b67a8659 /tests | |
| parent | c173139efbbb096aa23c1bf78ee0159f101f6a75 (diff) | |
| download | slskd-831e9ce49abbcc64a7b75c6fb2c90ad20b233e00.tar.gz | |
formatting/docs
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/slskd.Tests.Unit/Users/UserServiceTests.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/slskd.Tests.Unit/Users/UserServiceTests.cs b/tests/slskd.Tests.Unit/Users/UserServiceTests.cs index 28f54629..205ff0e2 100644 --- a/tests/slskd.Tests.Unit/Users/UserServiceTests.cs +++ b/tests/slskd.Tests.Unit/Users/UserServiceTests.cs @@ -130,9 +130,9 @@ public void Returns_Null_When_Path_Is_NullOrWhitespace(string path) { var (service, _) = GetFixture(); - + var result = service.GetProfilePicture(path); - + Assert.Null(result); } @@ -141,9 +141,9 @@ { const string nonExistentPath = "nonexistent-file.jpg"; var (service, _) = GetFixture(); - + var result = service.GetProfilePicture(nonExistentPath); - + Assert.Null(result); } @@ -155,11 +155,11 @@ { // Write some test data to the temp file System.IO.File.WriteAllBytes(tempFile, new byte[] { 1, 2, 3, 4, 5 }); - + var (service, _) = GetFixture(); - + var result = service.GetProfilePicture(tempFile); - + Assert.NotNull(result); Assert.Equal(new byte[] { 1, 2, 3, 4, 5 }, result); } @@ -174,7 +174,7 @@ } } - private static (UserService governor, Mocks mocks) GetFixture(Options options = null) + private static (UserService service, Mocks mocks) GetFixture(Options options = null) { var mocks = new Mocks(options); var service = new UserService( |
