mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-10-26 08:12:42 -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("")] |         [InlineData("")] | ||||||
|         [InlineData("special characters like & $ ? are not allowed")] |         [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) |         public void ThrowIfInvalidUsername_WhenInvalidUsername_ThrowsArgumentException(string username) | ||||||
|         { |         { | ||||||
|             Assert.Throws<ArgumentException>(() => UserManager.ThrowIfInvalidUsername(username)); |             Assert.Throws<ArgumentException>(() => UserManager.ThrowIfInvalidUsername(username)); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user