1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00
This commit is contained in:
Qstick
2021-08-03 00:43:28 -04:00
committed by Mark McDowall
parent 878d1561aa
commit 1c22a1ec0d
1201 changed files with 5620 additions and 4303 deletions
@@ -15,7 +15,7 @@ namespace NzbDrone.Core.Test.NotificationTests
[TestFixture]
public class NotificationBaseFixture : TestBase
{
class TestSetting : IProviderConfig
private class TestSetting : IProviderConfig
{
public NzbDroneValidationResult Validate()
{
@@ -23,12 +23,11 @@ namespace NzbDrone.Core.Test.NotificationTests
}
}
class TestNotificationWithOnDownload : NotificationBase<TestSetting>
private class TestNotificationWithOnDownload : NotificationBase<TestSetting>
{
public override string Name => "TestNotification";
public override string Link => "";
public override ValidationResult Test()
{
throw new NotImplementedException();
@@ -38,15 +37,13 @@ namespace NzbDrone.Core.Test.NotificationTests
{
TestLogger.Info("OnDownload was called");
}
}
class TestNotificationWithAllEvents : NotificationBase<TestSetting>
private class TestNotificationWithAllEvents : NotificationBase<TestSetting>
{
public override string Name => "TestNotification";
public override string Link => "";
public override ValidationResult Test()
{
throw new NotImplementedException();
@@ -66,14 +63,17 @@ namespace NzbDrone.Core.Test.NotificationTests
{
TestLogger.Info("OnRename was called");
}
public override void OnEpisodeFileDelete(EpisodeDeleteMessage message)
{
TestLogger.Info("Episode OnDelete was called");
}
public override void OnSeriesDelete(SeriesDeleteMessage deleteMessage)
{
TestLogger.Info("Series OnDelete was called");
}
public override void OnHealthIssue(NzbDrone.Core.HealthCheck.HealthCheck artist)
{
TestLogger.Info("OnHealthIssue was called");
@@ -83,21 +83,17 @@ namespace NzbDrone.Core.Test.NotificationTests
{
TestLogger.Info("OnApplicationUpdate was called");
}
}
class TestNotificationWithNoEvents : NotificationBase<TestSetting>
private class TestNotificationWithNoEvents : NotificationBase<TestSetting>
{
public override string Name => "TestNotification";
public override string Link => "";
public override ValidationResult Test()
{
throw new NotImplementedException();
}
}
[Test]
@@ -128,7 +124,6 @@ namespace NzbDrone.Core.Test.NotificationTests
notification.SupportsOnApplicationUpdate.Should().BeTrue();
}
[Test]
public void should_support_none_if_none_are_implemented()
{
@@ -145,5 +140,4 @@ namespace NzbDrone.Core.Test.NotificationTests
notification.SupportsOnApplicationUpdate.Should().BeFalse();
}
}
}