public void PcNameCannotContainSpecialChars() { string result = UserFunctions.GetPcName(); 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(" ")); Assert.IsFalse(result.Contains("_")); }
public void PcNameCannotStartWithDot() { Assert.IsFalse(UserFunctions.GetPcName().StartsWith(".")); }
public void PcNameMinLength() { Assert.IsTrue(UserFunctions.GetPcName().Length > 0); }
public void PcNameMaxLength() { Assert.IsTrue(UserFunctions.GetPcName().Length < 16); }
public void PcNameCannotBeNull() { Assert.AreNotEqual(null, UserFunctions.GetPcName()); }
public void PcNameCannotBeEmpty() { Assert.AreNotEqual("", UserFunctions.GetPcName()); }