public void TestRottedLink() { DiscordWebhook webhook = new DiscordWebhook(WorkshopType.Blueprint, "Test01", "ChangeLog"); var response = webhook.Call("https://discord.com/api/webhooks/1234567890/abcdABBCD0123456789-"); Assert.That(response == WebhookFailCause.NoResponse); }
public void TestInvalidLink() { DiscordWebhook webhook = new DiscordWebhook(WorkshopType.Blueprint, "Test01", "ChangeLog"); var response = webhook.Call("https://discord.com/api/webhooks/NotARealLink"); Assert.That(response == WebhookFailCause.InvalidURL); }