| @@ -1,10 +1,10 @@ | |||||
| using System; | |||||
| using System; | |||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| using Xunit; | using Xunit; | ||||
| namespace Discord | namespace Discord | ||||
| { | { | ||||
| public partial class Tests | |||||
| public class PermissionsTests | |||||
| { | { | ||||
| private void TestHelper(ChannelPermissions value, ChannelPermission permission, bool expected = false) | private void TestHelper(ChannelPermissions value, ChannelPermission permission, bool expected = false) | ||||
| => TestHelper(value.RawValue, (ulong)permission, expected); | => TestHelper(value.RawValue, (ulong)permission, expected); | ||||
| @@ -119,6 +119,7 @@ namespace Discord | |||||
| /// from the Has method. | /// from the Has method. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns></returns> | /// <returns></returns> | ||||
| [Fact] | |||||
| public Task TestPermissionsHasChannelPermissionNone() | public Task TestPermissionsHasChannelPermissionNone() | ||||
| { | { | ||||
| // check that none will fail all | // check that none will fail all | ||||
| @@ -155,6 +156,7 @@ namespace Discord | |||||
| /// from the Has method. | /// from the Has method. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns></returns> | /// <returns></returns> | ||||
| [Fact] | |||||
| public Task TestPermissionsHasChannelPermissionDM() | public Task TestPermissionsHasChannelPermissionDM() | ||||
| { | { | ||||
| // check that none will fail all | // check that none will fail all | ||||
| @@ -191,6 +193,7 @@ namespace Discord | |||||
| /// from the Has method. | /// from the Has method. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns></returns> | /// <returns></returns> | ||||
| [Fact] | |||||
| public Task TestPermissionsHasChannelPermissionGroup() | public Task TestPermissionsHasChannelPermissionGroup() | ||||
| { | { | ||||
| var value = ChannelPermissions.Group; | var value = ChannelPermissions.Group; | ||||