From 61cea37f0565d108e8e8617afc12a812bc056954 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 3 Apr 2019 20:55:26 -0400 Subject: [PATCH] Fixed: Test for get_file_by_album Failing --- .../MediaFiles/MediaFileRepositoryFixture.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/MediaFiles/MediaFileRepositoryFixture.cs b/src/NzbDrone.Core.Test/MediaFiles/MediaFileRepositoryFixture.cs index e504d6a52..43040950f 100644 --- a/src/NzbDrone.Core.Test/MediaFiles/MediaFileRepositoryFixture.cs +++ b/src/NzbDrone.Core.Test/MediaFiles/MediaFileRepositoryFixture.cs @@ -105,7 +105,16 @@ namespace NzbDrone.Core.Test.MediaFiles VerifyEagerLoaded(files); files.Should().OnlyContain(c => c.AlbumId == album.Id); - files.Should().HaveCount(5); + } + + [Test] + public void get_files_by_album_should_only_return_tracks_for_monitored_releases() + { + VerifyData(); + var files = Subject.GetFilesByAlbum(album.Id); + VerifyEagerLoaded(files); + + files.Should().HaveCount(4); } [Test]