diff options
| author | crobibero <cody@robibe.ro> | 2020-06-13 15:23:42 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-13 15:23:42 -0600 |
| commit | ce37c4074937e15e6cdd23f0f6e5016502ac2cee (patch) | |
| tree | 7263216cabb1e789fa9a2faa69c17187e7424e61 /tests/Jellyfin.Server.Implementations.Tests/HttpServer | |
| parent | 16e26be87f3c17422b7467882c5170fe11031825 (diff) | |
| parent | 0011e8df47380936742302ef40639a4626a780ed (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-item-lookup
Diffstat (limited to 'tests/Jellyfin.Server.Implementations.Tests/HttpServer')
| -rw-r--r-- | tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs b/tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs new file mode 100644 index 000000000..39bd94b59 --- /dev/null +++ b/tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs @@ -0,0 +1,18 @@ +using Emby.Server.Implementations.HttpServer; +using Xunit; + +namespace Jellyfin.Server.Implementations.Tests.HttpServer +{ + 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 RemoveControlCharacters_ValidArgs_Correct(string? input, string? result) + { + Assert.Equal(result, ResponseFilter.RemoveControlCharacters(input)); + } + } +} |
