mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-04 10:29:51 -06:00
23 lines
440 B
C#
23 lines
440 B
C#
#if(DEBUG)
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace FileFlows.Telegram.Tests;
|
|
|
|
[TestClass]
|
|
public class TelegramTests
|
|
{
|
|
[TestMethod]
|
|
public void SendMessage()
|
|
{
|
|
string botToken = "sometoken";
|
|
string chatId = "somechat";
|
|
|
|
var result =
|
|
Communication.Telegram.SendMessage(botToken, chatId, "this is a test");
|
|
|
|
Assert.IsTrue(result);
|
|
}
|
|
}
|
|
|
|
#endif |