瀏覽代碼

Address comments

MrTimscampi 3 年之前
父節點
當前提交
24083d2e38
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs

+ 6 - 3
tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs

@@ -107,7 +107,7 @@ namespace Jellyfin.MediaEncoding.Tests.Probing
             Assert.Equal(2020, res.ProductionYear);
             Assert.True(res.PremiereDate.HasValue);
             Assert.Equal(DateTime.Parse("2020-10-26T00:00Z", DateTimeFormatInfo.CurrentInfo).ToUniversalTime(), res.PremiereDate);
-            Assert.NotEmpty(res.People);
+            Assert.Equal(4, res.People.Length);
             Assert.Equal("Krysta Youngs", res.People[0].Name);
             Assert.Equal(PersonType.Composer, res.People[0].Type);
             Assert.Equal("Julia Ross", res.People[1].Name);
@@ -116,8 +116,11 @@ namespace Jellyfin.MediaEncoding.Tests.Probing
             Assert.Equal(PersonType.Composer, res.People[2].Type);
             Assert.Equal("Ji-hyo Park", res.People[3].Name);
             Assert.Equal(PersonType.Lyricist, res.People[3].Type);
-            Assert.NotEmpty(res.Genres);
-            Assert.Equal(new string[] { "Electronic", "Trance", "Dance", "Jazz" }, res.Genres);
+            Assert.Equal(4, res.Genres.Length);
+            Assert.Contains("Electronic", res.Genres);
+            Assert.Contains("Trance", res.Genres);
+            Assert.Contains("Dance", res.Genres);
+            Assert.Contains("Jazz", res.Genres);
         }
     }
 }