mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Update test cases.
This commit is contained in:
parent
237c1d9b97
commit
b5fcbfc15e
@ -23,6 +23,10 @@ namespace Jellyfin.Server.Implementations.Tests.Users
|
||||
[InlineData(" ")]
|
||||
[InlineData("")]
|
||||
[InlineData("special characters like & $ ? are not allowed")]
|
||||
[InlineData("thishasaspaceontheend ")]
|
||||
[InlineData(" thishasaspaceatthestart")]
|
||||
[InlineData(" thishasaspaceatbothends ")]
|
||||
[InlineData(" this has a space at both ends and inbetween ")]
|
||||
public void ThrowIfInvalidUsername_WhenInvalidUsername_ThrowsArgumentException(string username)
|
||||
{
|
||||
Assert.Throws<ArgumentException>(() => UserManager.ThrowIfInvalidUsername(username));
|
||||
|
Loading…
x
Reference in New Issue
Block a user