2022-10-11 12:45:49 -07:00
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using Xunit;
|
|
|
|
|
2022-12-05 05:54:28 -07:00
|
|
|
namespace Jellyfin.Controller.Tests.Entities;
|
|
|
|
|
|
|
|
public class BaseItemTests
|
2022-10-11 12:45:49 -07:00
|
|
|
{
|
2022-12-05 05:54:28 -07:00
|
|
|
[Theory]
|
|
|
|
[InlineData("", "")]
|
|
|
|
[InlineData("1", "0000000001")]
|
|
|
|
[InlineData("t", "t")]
|
|
|
|
[InlineData("test", "test")]
|
|
|
|
[InlineData("test1", "test0000000001")]
|
|
|
|
[InlineData("1test 2", "0000000001test 0000000002")]
|
|
|
|
public void BaseItem_ModifySortChunks_Valid(string input, string expected)
|
|
|
|
=> Assert.Equal(expected, BaseItem.ModifySortChunks(input));
|
2022-10-11 12:45:49 -07:00
|
|
|
}
|