OmniLinkBridge/OmniLinkBridgeTest/NotificationTest.cs

28 lines
736 B
C#
Raw Permalink Normal View History

using Microsoft.VisualStudio.TestTools.UnitTesting;
using OmniLinkBridge;
using OmniLinkBridge.Notifications;
using System.Net.Mail;
namespace OmniLinkBridgeTest
{
[TestClass]
public class NotificationTest
{
[TestMethod]
public void SendNotification()
{
// This is an integration test
Global.mail_server = "localhost";
Global.mail_tls = false;
Global.mail_port = 25;
Global.mail_from = new MailAddress("OmniLinkBridge@localhost");
Global.mail_to = new MailAddress[]
{
new MailAddress("mailbox@localhost")
};
Notification.Notify("Title", "Description");
}
}
}