diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2022-10-12 23:09:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-12 23:09:58 +0200 |
| commit | fca87bcd0c34fe738d7183269cf00c94da3d5dfa (patch) | |
| tree | 6272e9df8979863b58fb817836e5ce365b684126 /tests | |
| parent | 263a1663aebd26bd57bfc10c50ecbb76c8195291 (diff) | |
| parent | 224bb355ddb0c991873d172dec96d47f36ab02ea (diff) | |
Merge pull request #8540 from Bond-009/sortChunks
Rewrite BaseItem.ModifySortChunks
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs b/tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs new file mode 100644 index 000000000..985bbcde1 --- /dev/null +++ b/tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs @@ -0,0 +1,18 @@ +using MediaBrowser.Controller.Entities; +using Xunit; + +namespace Jellyfin.Controller.Tests.Entities +{ + public class BaseItemTests + { + [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)); + } +} |
