mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 18:53:27 +01:00
This commit is contained in:
@@ -10,6 +10,9 @@ namespace Jellyfin.Server.Implementations.Tests.Users
|
||||
[InlineData("this_is_valid")]
|
||||
[InlineData("this is also valid")]
|
||||
[InlineData("0@_-' .")]
|
||||
[InlineData("Aa0@_-' .+")]
|
||||
[InlineData("thisisa+testemail@test.foo")]
|
||||
[InlineData("------@@@--+++----@@--abcdefghijklmn---------@----_-_-___-_ .9foo+")]
|
||||
public void ThrowIfInvalidUsername_WhenValidUsername_DoesNotThrowArgumentException(string username)
|
||||
{
|
||||
var ex = Record.Exception(() => UserManager.ThrowIfInvalidUsername(username));
|
||||
|
||||
Reference in New Issue
Block a user