private void InitData() { Model = new AboutWindowModel(); Model.Username = UserFunctions.GetFQDN(); Model.AppBuild = AppFunctions.GetAppBuild(); }
public void FqdnCannotContainSpecialChars() { string result = UserFunctions.GetFQDN(); 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("_")); 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 FqdnCannotStartWithDot() { Assert.IsFalse(UserFunctions.GetFQDN().StartsWith(".")); }
public void FqdnMinLength() { Assert.IsTrue(UserFunctions.GetFQDN().Length > 0); }
public void FqdnCannotBeNull() { Assert.AreNotEqual(null, UserFunctions.GetFQDN()); }
public void FqdnCannotBeEmpty() { Assert.AreNotEqual("", UserFunctions.GetFQDN()); }
private void InitData() { Model = new LoginModel(); Model.Domain = UserFunctions.GetDomainOrPcName(); Model.Username = UserFunctions.GetFQDN(); }