diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-06 08:09:50 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-06-06 09:26:44 -0500 |
| commit | 4d0d3e63aee33a1455242f5db9b07c66097a93ca (patch) | |
| tree | 03b157b68339553cf072b70065f2778ec492af5b /tests | |
| parent | 5ed58b906b98c0f1b06147ed4db18c9bc2f1ffdf (diff) | |
| parent | 12cf9ad6b33ae29e9e7caea20b205fadd45798bf (diff) | |
| download | slskd-4d0d3e63aee33a1455242f5db9b07c66097a93ca.tar.gz | |
wip
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/slskd.Tests.Unit/Common/FileSafety/CombineSafelyTests.cs | 4 | ||||
| -rw-r--r-- | tests/slskd.Tests.Unit/Transfers/API/DTO/QueueDownloadBatchRequestTests.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/slskd.Tests.Unit/Common/FileSafety/CombineSafelyTests.cs b/tests/slskd.Tests.Unit/Common/FileSafety/CombineSafelyTests.cs index e40ce743..ceba3b86 100644 --- a/tests/slskd.Tests.Unit/Common/FileSafety/CombineSafelyTests.cs +++ b/tests/slskd.Tests.Unit/Common/FileSafety/CombineSafelyTests.cs @@ -15,7 +15,7 @@ public partial class FileSafetyTests [InlineData(null)] [InlineData("")] [InlineData(" ")] - public void Throws_ArgumentException_Given_NullOrWhiteSpaceRoot(string root) + public void Throws_ArgumentNullException_Given_NullOrWhiteSpaceRoot(string root) { var ex = Record.Exception(() => FileSafety.CombineSafely(root)); @@ -167,7 +167,7 @@ public partial class FileSafetyTests [Theory] [InlineData("C:relative")] - public void Accepts_Colon_In_Segment_On_Linux_Hits_Backstop_On_Windows(string segment) + public void Accepts_Colon_In_Segment_On_Linux_When_Running_On_Windows(string segment) { var result = FileSafety.CombineSafely(Base, OperatingSystem.Linux, segment); diff --git a/tests/slskd.Tests.Unit/Transfers/API/DTO/QueueDownloadBatchRequestTests.cs b/tests/slskd.Tests.Unit/Transfers/API/DTO/QueueDownloadBatchRequestTests.cs index 370a722d..f608467b 100644 --- a/tests/slskd.Tests.Unit/Transfers/API/DTO/QueueDownloadBatchRequestTests.cs +++ b/tests/slskd.Tests.Unit/Transfers/API/DTO/QueueDownloadBatchRequestTests.cs @@ -285,7 +285,7 @@ public class QueueDownloadBatchRequestTests var (isValid, results) = Validate(new EnqueueDownloadBatchOptions { Destination = value }); Assert.False(isValid); Assert.Single(results); - Assert.Equal("The Destination field must be a relative path on all operating systems.", results[0].ErrorMessage); + Assert.Contains("must be a relative path", results[0].ErrorMessage); } } @@ -300,7 +300,7 @@ public class QueueDownloadBatchRequestTests var (isValid, results) = Validate(new EnqueueDownloadBatchOptions { Destination = value }); Assert.False(isValid); Assert.Single(results); - Assert.Equal("The Destination field must be a relative path.", results[0].ErrorMessage); + Assert.Contains("must be a relative path", results[0].ErrorMessage); } } |
