From b4385bcaad886ec396b56bc24b5a661bc3f8685f Mon Sep 17 00:00:00 2001 From: Roger Far Date: Sun, 13 Apr 2025 09:33:36 -0600 Subject: [PATCH] no message --- .../RdtClient.Service.Test/Services/TorrentsTest.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/server/RdtClient.Service.Test/Services/TorrentsTest.cs b/server/RdtClient.Service.Test/Services/TorrentsTest.cs index a8814e9..addd45d 100644 --- a/server/RdtClient.Service.Test/Services/TorrentsTest.cs +++ b/server/RdtClient.Service.Test/Services/TorrentsTest.cs @@ -40,7 +40,7 @@ public class TorrentsTest { public static TheoryData> TorrentAndDownload() { - var torrent = new Torrent() + var torrent = new Torrent { RdName = "TestTorrent", Hash = "123ABC", @@ -125,7 +125,10 @@ public class TorrentsTest expectedArgumentsSb.Append($" {downloads.Count.ToString()}"); expectedArgumentsSb.Append($" {torrent.RdSize.ToString()}"); expectedArgumentsSb.Append($" {torrent.Hash}"); - Assert.Equal(expectedArgumentsSb.ToString(), mocks.ProcessMock.Object.StartInfo.Arguments); + + var expectedArguments = expectedArgumentsSb.ToString(); + + Assert.Equal(expectedArguments, mocks.ProcessMock.Object.StartInfo.Arguments); mocks.ProcessMock.Verify(p => p.Start(), Times.Once); } @@ -135,7 +138,7 @@ public class TorrentsTest public async Task RunTorrentComplete_WhenCommandNotSet_ShouldNotRunCommand(Torrent torrent, List downloads) { // Arrange - var settings = new DbSettings() + var settings = new DbSettings { General = new() { @@ -182,7 +185,7 @@ public class TorrentsTest public async Task RunTorrentComplete_WhenStdOut_Logs(Torrent torrent, List downloads) { // Arrange - var settings = new DbSettings() + var settings = new DbSettings { General = new() { @@ -248,7 +251,7 @@ public class TorrentsTest public async Task RunTorrentComplete_WhenStdErr_Logs(Torrent torrent, List downloads) { // Arrange - var settings = new DbSettings() + var settings = new DbSettings { General = new() {