From 43ef2fa6e5e4291e4363e4896a3c0257fe7b2628 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 8 Apr 2018 23:18:58 -0400 Subject: [PATCH] Fixed: RootFolder HealthCheck Test --- .../HealthCheck/Checks/RootFolderCheckFixture.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/NzbDrone.Core.Test/HealthCheck/Checks/RootFolderCheckFixture.cs b/src/NzbDrone.Core.Test/HealthCheck/Checks/RootFolderCheckFixture.cs index 6755a83f9..bad299f2e 100644 --- a/src/NzbDrone.Core.Test/HealthCheck/Checks/RootFolderCheckFixture.cs +++ b/src/NzbDrone.Core.Test/HealthCheck/Checks/RootFolderCheckFixture.cs @@ -5,6 +5,7 @@ using Moq; using NUnit.Framework; using NzbDrone.Common.Disk; using NzbDrone.Core.HealthCheck.Checks; +using NzbDrone.Core.ImportLists; using NzbDrone.Core.Test.Framework; using NzbDrone.Core.Music; @@ -19,10 +20,18 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks .Build() .ToList(); + var importList = Builder.CreateListOfSize(1) + .Build() + .ToList(); + Mocker.GetMock() .Setup(s => s.GetAllArtists()) .Returns(artist); + Mocker.GetMock() + .Setup(s => s.All()) + .Returns(importList); + Mocker.GetMock() .Setup(s => s.GetParentFolder(artist.First().Path)) .Returns(@"C:\Music"); @@ -39,6 +48,10 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks .Setup(s => s.GetAllArtists()) .Returns(new List()); + Mocker.GetMock() + .Setup(s => s.All()) + .Returns(new List()); + Subject.Check().ShouldBeOk(); }