mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 04:18:06 +02:00
18 lines
605 B
C#
18 lines
605 B
C#
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));
|
|
}
|
|
}
|
|
}
|