mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
User work
This commit is contained in:
parent
2a6f928902
commit
068f75f514
7 changed files with 118 additions and 18 deletions
|
@ -26,7 +26,7 @@
|
|||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
|
||||
using PlexRequests.Store;
|
||||
|
@ -42,6 +42,14 @@ namespace PlexRequests.Helpers.Tests
|
|||
return input.GetPropertyNames();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void GetConstantsTest()
|
||||
{
|
||||
var consts = typeof(UserClaims).GetConstantsValues<string>();
|
||||
Assert.That(consts.Contains("Admin"),Is.True);
|
||||
Assert.That(consts.Contains("PowerUser"),Is.True);
|
||||
Assert.That(consts.Contains("User"),Is.True);
|
||||
}
|
||||
|
||||
private static IEnumerable<TestCaseData> TypeData
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue