You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
605 B
19 lines
605 B
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));
|
|
}
|
|
}
|
|
}
|