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

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


Loading…
Cancel
Save