mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-26 19:50:36 +00:00
21 lines
724 B
C#
21 lines
724 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.Multiple(() =>
|
|
{
|
|
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);
|
|
});
|
|
}
|
|
} |