From 79e4c2767718edb656a6ea06a871c6bdd60e228b Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Wed, 28 Feb 2018 11:03:13 -0800 Subject: [PATCH] Add guild tests --- test/Discord.Net.Tests/Tests.Permissions.cs | 45 +++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/test/Discord.Net.Tests/Tests.Permissions.cs b/test/Discord.Net.Tests/Tests.Permissions.cs index ad1d1f769..10673006c 100644 --- a/test/Discord.Net.Tests/Tests.Permissions.cs +++ b/test/Discord.Net.Tests/Tests.Permissions.cs @@ -188,5 +188,50 @@ namespace Discord return Task.CompletedTask; } + + /// + /// Tests for the class. + /// + /// Test that that the Has method of + /// returns the correct value when no permissions are set. + /// + /// + [Fact] + public Task TestPermissionsHasGuildPermissionNone() + { + var value = GuildPermissions.None; + + return Task.CompletedTask; + } + + /// + /// Tests for the class. + /// + /// Test that that the Has method of + /// returns the correct value when all permissions are set. + /// + /// + [Fact] + public Task TestPermissionsHasGuildPermissionAll() + { + var value = GuildPermissions.All; + + return Task.CompletedTask; + } + + /// + /// Tests for the class. + /// + /// Test that that the Has method of + /// returns the correct value when webhook permissions are set. + /// + /// + [Fact] + public Task TestPermissionsHasGuildPermissionWebhook() + { + var value = GuildPermissions.All; + + return Task.CompletedTask; + } } }