Example #1
0
        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);
        }
Example #2
0
        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);
        }