mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-02-15 15:19:34 -06:00
27 lines
704 B
C#
27 lines
704 B
C#
#if(DEBUG)
|
|
|
|
using FileFlows.Pushover.Communication;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using PluginTestLibrary;
|
|
|
|
namespace FileFlows.Pushover.Tests;
|
|
|
|
[TestClass]
|
|
public class PushoverTests : TestBase
|
|
{
|
|
[TestMethod]
|
|
public void Pushover_Basic_Message()
|
|
{
|
|
var args = new NodeParameters("test.file", Logger, false, string.Empty, new LocalFileService());
|
|
args.GetPluginSettingsJson = (string input) =>
|
|
{
|
|
return File.ReadAllText("../../../../../pushover.json");
|
|
};
|
|
|
|
var node = new FileFlows.Pushover.Communication.Pushover();
|
|
node.Message = "a message";
|
|
Assert.AreEqual(1, node.Execute(args));
|
|
}
|
|
}
|
|
|
|
#endif |