Merge pull request #6979 from crobibero/baseitemkind

Use BaseItemKind where possible
This commit is contained in:
Claus Vium
2021-12-15 08:28:44 +01:00
committed by GitHub
53 changed files with 308 additions and 355 deletions

View File

@@ -55,35 +55,5 @@ namespace Jellyfin.Api.Tests.Helpers
return data;
}
[Fact]
public static void GetItemTypeStrings_Empty_Empty()
{
Assert.Empty(RequestHelpers.GetItemTypeStrings(Array.Empty<BaseItemKind>()));
}
[Fact]
public static void GetItemTypeStrings_Valid_Success()
{
BaseItemKind[] input =
{
BaseItemKind.AggregateFolder,
BaseItemKind.Audio,
BaseItemKind.BasePluginFolder,
BaseItemKind.CollectionFolder
};
string[] expected =
{
"AggregateFolder",
"Audio",
"BasePluginFolder",
"CollectionFolder"
};
var res = RequestHelpers.GetItemTypeStrings(input);
Assert.Equal(expected, res);
}
}
}