mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
16 lines
523 B
C#
16 lines
523 B
C#
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));
|
|
}
|
|
}
|
|
}
|