Resolve WES-56 "Account switching"

This commit is contained in:
Dries Van Schuylenbergh
2023-03-12 19:36:37 +00:00
committed by Jelle De Geest
parent 0ea743354b
commit b6b863183e
19 changed files with 5595 additions and 256 deletions

View File

@@ -19,10 +19,10 @@ public class TestUserCreationScreen : MonoBehaviour
/// </summary>
public void TestIsValidUsernameTrue()
{
foreach (char c in "abcdefghijklmnopqrstuvwxyz")
foreach (char c in "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
Debug.Assert(UserCreationScreen.IsValidUsername(c.ToString()));
Debug.Assert(UserCreationScreen.IsValidUsername("abcdefghijkl"));
Debug.Assert(UserCreationScreen.IsValidUsername("123456789AbC"));
}
/// <summary>
@@ -31,9 +31,9 @@ public class TestUserCreationScreen : MonoBehaviour
public void TestIsValidUsernameFalse()
{
Debug.Assert(!UserCreationScreen.IsValidUsername(string.Empty));
foreach (char c in " \n\t0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ+-*/%_(){}[]\\")
foreach (char c in " \n\t+-*/%_.,;:!?(){}[]\\'\"§|&~^$")
Debug.Assert(!UserCreationScreen.IsValidUsername(c.ToString()));
Debug.Assert(!UserCreationScreen.IsValidUsername("abcdefghijklmnopqrstuvwxyz"));
Debug.Assert(!UserCreationScreen.IsValidUsername("123456789_10_11_12_13"));
}
}