public void UserNameCannotContainSpecialChars() { string result = UserFunctions.GetUsername(); Assert.IsFalse(result.Contains("\"")); Assert.IsFalse(result.Contains("/")); Assert.IsFalse(result.Contains(@"\")); Assert.IsFalse(result.Contains("[")); Assert.IsFalse(result.Contains("]")); Assert.IsFalse(result.Contains(":")); Assert.IsFalse(result.Contains(";")); Assert.IsFalse(result.Contains("|")); Assert.IsFalse(result.Contains("=")); Assert.IsFalse(result.Contains(",")); Assert.IsFalse(result.Contains("+")); Assert.IsFalse(result.Contains("*")); Assert.IsFalse(result.Contains("?")); Assert.IsFalse(result.Contains("<")); Assert.IsFalse(result.Contains(">")); }
public void UserNameMinLength() { Assert.IsTrue(UserFunctions.GetUsername().Length > 0); }
public void UserNameCannotBeNull() { Assert.AreNotEqual(null, UserFunctions.GetUsername()); }
public void UserNameMaxLength() { Assert.IsTrue(UserFunctions.GetUsername().Length < 16); }
public void UserNameCannotBeEmpty() { Assert.AreNotEqual("", UserFunctions.GetUsername()); }