mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-27 04:00:34 +00:00
92751ba6e9
some formatting might be fucked
18 lines
656 B
C#
18 lines
656 B
C#
using CompatBot.Database;
|
|
using NUnit.Framework;
|
|
|
|
namespace Tests;
|
|
|
|
[TestFixture]
|
|
public class FlagTests
|
|
{
|
|
[Test]
|
|
public void MultipleFlagTest()
|
|
{
|
|
var testVal = FilterAction.IssueWarning | FilterAction.MuteModQueue;
|
|
Assert.That(testVal.HasFlag(FilterAction.IssueWarning), Is.True);
|
|
Assert.That(testVal.HasFlag(FilterAction.IssueWarning | FilterAction.MuteModQueue), Is.True);
|
|
Assert.That(testVal.HasFlag(FilterAction.IssueWarning | FilterAction.MuteModQueue | FilterAction.RemoveContent), Is.False);
|
|
Assert.That(testVal.HasFlag(FilterAction.IssueWarning | FilterAction.SendMessage), Is.False);
|
|
}
|
|
} |