From 90a9ecbaac1b406ffeb6b6876d619191a317a35f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 21 May 2023 11:24:12 +0300 Subject: [PATCH] Fix tests in IndexerServiceFixture --- src/NzbDrone.Core.Test/IndexerTests/IndexerServiceFixture.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/IndexerTests/IndexerServiceFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/IndexerServiceFixture.cs index 4ade676d9..1d611d670 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/IndexerServiceFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/IndexerServiceFixture.cs @@ -7,6 +7,7 @@ using NzbDrone.Core.Indexers.FileList; using NzbDrone.Core.Indexers.Newznab; using NzbDrone.Core.Lifecycle; using NzbDrone.Core.Test.Framework; +using NzbDrone.Test.Common; namespace NzbDrone.Core.Test.IndexerTests { @@ -33,13 +34,15 @@ namespace NzbDrone.Core.Test.IndexerTests Mocker.SetConstant(repo); var existingIndexers = Builder.CreateNew().BuildNew(); - existingIndexers.ConfigContract = typeof(NewznabSettings).Name; + existingIndexers.ConfigContract = nameof(NewznabSettings); repo.Insert(existingIndexers); Subject.Handle(new ApplicationStartedEvent()); AllStoredModels.Should().NotContain(c => c.Id == existingIndexers.Id); + + ExceptionVerification.ExpectedWarns(1); } } }