Files
FileFlowsPlugins/Pushover/Tests/PushoverTests.cs
John Andrews 444d46bf62 unit tests
2024-08-26 18:16:07 +12:00

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