Update tests/Jellyfin.Server.Implementations.Tests/Sorting/AiredEpisodeOrderComparerTests.cs

Thanks for this suggestion. I will try to keep this in mind going forward with future PRs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Rob 2021-08-15 15:23:18 -07:00 committed by GitHub
parent 78bbfca990
commit 10fbb4d48d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ namespace Jellyfin.Server.Implementations.Tests.Sorting
{ {
[Theory] [Theory]
[ClassData(typeof(EpisodeBadData))] [ClassData(typeof(EpisodeBadData))]
public void AiredEpisodeOrderCompareErrorTest(BaseItem x, BaseItem y) public void Compare_GivenNull_ThrowsArgumentNullException(BaseItem x, BaseItem y)
{ {
var cmp = new AiredEpisodeOrderComparer(); var cmp = new AiredEpisodeOrderComparer();
Assert.Throws<ArgumentNullException>(() => cmp.Compare(x, y)); Assert.Throws<ArgumentNullException>(() => cmp.Compare(x, y));