mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Update test cases.
This commit is contained in:
parent
237c1d9b97
commit
b5fcbfc15e
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue