1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-28 19:05:55 +00:00
Radarr/NzbDrone.Core.Test/NotificationTests/GrowlProviderTest.cs

63 lines
1.5 KiB
C#
Raw Normal View History

using NUnit.Framework;
2013-05-19 23:17:32 +00:00
using NzbDrone.Core.Notifications.Growl;
using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.NotificationTests
{
[Explicit]
[TestFixture]
public class GrowlProviderTest : CoreTest
{
[Test]
public void Register_should_add_new_application_to_local_growl_instance()
{
2013-03-28 22:07:09 +00:00
2013-04-15 05:27:51 +00:00
2013-03-28 22:07:09 +00:00
2011-12-15 04:15:53 +00:00
Mocker.Resolve<GrowlProvider>().Register("localhost", 23053, "");
2013-03-28 22:07:09 +00:00
2011-12-15 04:15:53 +00:00
Mocker.VerifyAllMocks();
}
[Test]
public void TestNotification_should_send_a_message_to_local_growl_instance()
{
2013-03-28 22:07:09 +00:00
2013-04-15 05:27:51 +00:00
2013-03-28 22:07:09 +00:00
2011-12-15 04:15:53 +00:00
Mocker.Resolve<GrowlProvider>().TestNotification("localhost", 23053, "");
2013-03-28 22:07:09 +00:00
2011-12-15 04:15:53 +00:00
Mocker.VerifyAllMocks();
}
[Test]
public void OnGrab_should_send_a_message_to_local_growl_instance()
{
2013-03-28 22:07:09 +00:00
2013-04-15 05:27:51 +00:00
2013-03-28 22:07:09 +00:00
2011-12-15 04:15:53 +00:00
Mocker.Resolve<GrowlProvider>().SendNotification("Episode Grabbed", "Series Title - 1x05 - Episode Title", "GRAB", "localhost", 23053, "");
2013-03-28 22:07:09 +00:00
2011-12-15 04:15:53 +00:00
Mocker.VerifyAllMocks();
}
[Test]
public void OnDownload_should_send_a_message_to_local_growl_instance()
{
2013-03-28 22:07:09 +00:00
2013-04-15 05:27:51 +00:00
2013-03-28 22:07:09 +00:00
2011-12-15 04:15:53 +00:00
Mocker.Resolve<GrowlProvider>().SendNotification("Episode Downloaded", "Series Title - 1x05 - Episode Title", "DOWNLOAD", "localhost", 23053, "");
2013-03-28 22:07:09 +00:00
2011-12-15 04:15:53 +00:00
Mocker.VerifyAllMocks();
}
}
}