Browse Source

Add missing Fact attributes, separate class so that it is not dependant on main test fixture

pull/967/head
Chris Johnston 7 years ago
parent
commit
21bb62d5a2
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      test/Discord.Net.Tests/Tests.Permissions.cs

+ 5
- 2
test/Discord.Net.Tests/Tests.Permissions.cs View File

@@ -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;


Loading…
Cancel
Save