diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-20 10:16:22 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-20 10:18:12 +0200 |
| commit | 958681cdffddc7ea24d92d126badb3372cfa5d41 (patch) | |
| tree | e66c2788b7222995179c08cbff49410587d43072 /tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs | |
| parent | 7f4a229cd2fee89fdd8329c9c9f907e381d45c46 (diff) | |
Cover more branches
Diffstat (limited to 'tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs')
| -rw-r--r-- | tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs b/tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs index 42d128dc6..39bd94b59 100644 --- a/tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs +++ b/tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs @@ -3,12 +3,14 @@ using Xunit; namespace Jellyfin.Server.Implementations.Tests.HttpServer { - public class HttpServerTests + public class ResponseFilterTests { [Theory] + [InlineData(null, null)] + [InlineData("", "")] [InlineData("This is a clean string.", "This is a clean string.")] [InlineData("This isn't \n\ra clean string.", "This isn't a clean string.")] - public void RemoveControlCharactersTest(string input, string result) + public void RemoveControlCharacters_ValidArgs_Correct(string? input, string? result) { Assert.Equal(result, ResponseFilter.RemoveControlCharacters(input)); } |
