1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 07:22:35 +01:00

Fixed prowl tests

This commit is contained in:
Mark McDowall 2021-11-03 15:57:02 -07:00
parent 85a143a1b6
commit 51d45247d0

View File

@ -37,14 +37,16 @@ namespace NzbDrone.Core.Test.NotificationTests
[Test] [Test]
public void SendNotification_should_not_throw_for_a_valid_apiKey() public void SendNotification_should_not_throw_for_a_valid_apiKey()
{ {
Subject.SendNotification("NzbDrone Test", "This is a test message from NzbDrone", _apiKey); Subject.SendNotification("NzbDrone Test", "This is a test message from NzbDrone", _settings);
ExceptionVerification.ExpectedWarns(0); ExceptionVerification.ExpectedWarns(0);
} }
[Test] [Test]
public void SendNotification_should_log_a_warning_for_an_invalid_apiKey() public void SendNotification_should_log_a_warning_for_an_invalid_apiKey()
{ {
Subject.SendNotification("NzbDrone Test", "This is a test message from NzbDrone", _badApiKey); _settings.ApiKey = _badApiKey;
Subject.SendNotification("NzbDrone Test", "This is a test message from NzbDrone", _settings);
ExceptionVerification.ExpectedWarns(1); ExceptionVerification.ExpectedWarns(1);
} }