Update tests/Jellyfin.Server.Implementations.Tests/Library/PathExtensionsTests.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Cody Robibero 2021-12-11 19:43:01 -07:00 committed by GitHub
parent d707a201c9
commit 58f788e8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ namespace Jellyfin.Server.Implementations.Tests.Library
[InlineData("tmdbid=618355", "tmdbid", null)] [InlineData("tmdbid=618355", "tmdbid", null)]
[InlineData("tmdbid=", "tmdbid", null)] [InlineData("tmdbid=", "tmdbid", null)]
[InlineData("tmdbid", "tmdbid", null)] [InlineData("tmdbid", "tmdbid", null)]
[InlineData("[tmdbid=][imdbid=tt10985510]", "tmdbid", null)]
public void GetAttributeValue_ValidArgs_Correct(string input, string attribute, string? expectedResult) public void GetAttributeValue_ValidArgs_Correct(string input, string attribute, string? expectedResult)
{ {
Assert.Equal(expectedResult, PathExtensions.GetAttributeValue(input, attribute)); Assert.Equal(expectedResult, PathExtensions.GetAttributeValue(input, attribute));