mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-20 16:20:17 -06:00
26 lines
636 B
C#
26 lines
636 B
C#
#if(DEBUG)
|
|
|
|
using FileFlows.Gotify.Communication;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace FileFlows.Gotify.Tests;
|
|
|
|
[TestClass]
|
|
public class GotifyTests
|
|
{
|
|
[TestMethod]
|
|
public void Gotify_Basic_Message()
|
|
{
|
|
var args = new NodeParameters("test.file", new TestLogger(), false, string.Empty);
|
|
args.GetPluginSettingsJson = (string input) =>
|
|
{
|
|
return File.ReadAllText("../../../settings.json");
|
|
};
|
|
|
|
var node = new FileFlows.Gotify.Communication.Gotify();
|
|
node.Message = "a message";
|
|
Assert.AreEqual(1, node.Execute(args));
|
|
}
|
|
}
|
|
|
|
#endif |