Fix Blocklist Tests

pull/8339/head v4.4.4.7068
Qstick 2 years ago
parent 12e360ab4f
commit bb573594d9

@ -81,8 +81,9 @@ namespace NzbDrone.Core.Test.Blocklisting
Subject.DeleteForMovies(new List<int> { _movie1.Id });
var removedMovieBlocklists = Subject.BlocklistedByMovie(_movie1.Id);
var nonRemovedMovieBlocklists = Subject.BlocklistedByMovie(_movie2.Id);
var blocklist = Subject.All();
var removedMovieBlocklists = blocklist.Where(b => b.MovieId == _movie1.Id);
var nonRemovedMovieBlocklists = blocklist.Where(b => b.MovieId == _movie2.Id);
removedMovieBlocklists.Should().HaveCount(0);
nonRemovedMovieBlocklists.Should().HaveCount(1);

Loading…
Cancel
Save