mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-06 19:09:31 -06:00
26 lines
675 B
C#
26 lines
675 B
C#
#if(DEBUG)
|
|
|
|
using FileFlows.Pushbullet.Communication;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace FileFlows.Pushbullet.Tests;
|
|
|
|
[TestClass]
|
|
public class PushbulletTests
|
|
{
|
|
[TestMethod]
|
|
public void Pushbullet_Basic_Message()
|
|
{
|
|
var args = new NodeParameters("test.file", new TestLogger(), false, string.Empty, null!);
|
|
args.GetPluginSettingsJson = (string input) =>
|
|
{
|
|
return File.ReadAllText("../../../../../Pushbullet.json");
|
|
};
|
|
|
|
var node = new FileFlows.Pushbullet.Communication.Pushbullet();
|
|
node.Message = "a message";
|
|
Assert.AreEqual(1, node.Execute(args));
|
|
}
|
|
}
|
|
|
|
#endif |