diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-01-13 21:16:04 +0000 |
|---|---|---|
| committer | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-01-13 21:16:04 +0000 |
| commit | bced1eab54180c1dd60d884dd03adb5207a4a20b (patch) | |
| tree | d5575515acb17f46f841d9b581f146b94c9b5d08 | |
| parent | 4bc8a1e77beacb607ac221cc8d37f30e16dd4984 (diff) | |
Assert.True
| -rw-r--r-- | tests/Jellyfin.Api.Tests/ParseNetworkTests.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/Jellyfin.Api.Tests/ParseNetworkTests.cs b/tests/Jellyfin.Api.Tests/ParseNetworkTests.cs index f4ea45cc2..ca7b8a965 100644 --- a/tests/Jellyfin.Api.Tests/ParseNetworkTests.cs +++ b/tests/Jellyfin.Api.Tests/ParseNetworkTests.cs @@ -1,15 +1,10 @@ using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Net; using System.Text; -using System.Threading.Tasks; using Jellyfin.Networking.Configuration; using Jellyfin.Networking.Manager; using Jellyfin.Server.Extensions; using MediaBrowser.Common.Configuration; -using MediaBrowser.Common.Net; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Logging.Abstractions; using Moq; @@ -86,10 +81,7 @@ namespace Jellyfin.Api.Tests sb.Append(','); } - if (!string.Equals(sb.ToString(), result, StringComparison.OrdinalIgnoreCase)) - { - throw new Exception("Not matched: " + sb.ToString() + " does not match " + result); - } + Assert.True(string.Equals(sb.ToString(), result, StringComparison.OrdinalIgnoreCase), "Not matched: " + sb.ToString() + " does not match " + result); } } } |
