diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-19 15:18:28 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-20 10:18:12 +0200 |
| commit | 7f4a229cd2fee89fdd8329c9c9f907e381d45c46 (patch) | |
| tree | ce60fe469b635c7c3369964d9783affebc483639 /tests/Jellyfin.Server.Implementations.Tests/HttpServer | |
| parent | 3142c9b9901cc653eb758ba7d47edbbe2190f83d (diff) | |
Add some simple tests
Diffstat (limited to 'tests/Jellyfin.Server.Implementations.Tests/HttpServer')
| -rw-r--r-- | tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs | 16 |
1 files changed, 16 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..42d128dc6 --- /dev/null +++ b/tests/Jellyfin.Server.Implementations.Tests/HttpServer/ResponseFilterTests.cs @@ -0,0 +1,16 @@ +using Emby.Server.Implementations.HttpServer; +using Xunit; + +namespace Jellyfin.Server.Implementations.Tests.HttpServer +{ + public class HttpServerTests + { + [Theory] + [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) + { + Assert.Equal(result, ResponseFilter.RemoveControlCharacters(input)); + } + } +} |
