public void TestNamespace() { var user = new Zongsoft.Security.Membership.User(1, "admin", "zongsoft"); user.Namespace = "Zongsoft.CMS"; Assert.Equal("Zongsoft.CMS", user.Namespace); }
public void TestName() { var user = new Zongsoft.Security.Membership.User(); user.Name = string.Empty; user.Name = "admin"; user.Name = "$123"; }
public void TestNamespace() { var user = new Zongsoft.Security.Membership.User(1, "admin", "zongsoft"); user.Namespace = "Zongsoft.CMS"; Assert.Equal("Zongsoft.CMS", user.Namespace); }
public void TestName() { var user = new Zongsoft.Security.Membership.User(); user.Name = string.Empty; user.Name = "admin"; user.Name = "$123"; }
public void TestNameException4() { var user = new Zongsoft.Security.Membership.User(); Assert.Throws<ArgumentException>(() => user.Name = "123"); }
public void TestNameException2() { var user = new Zongsoft.Security.Membership.User(1, "admin"); Assert.Throws<ArgumentNullException>(() => user.Name = string.Empty); }
public void TestNameException4() { var user = new Zongsoft.Security.Membership.User(); Assert.Throws <ArgumentException>(() => user.Name = "123"); }
public void TestNameException2() { var user = new Zongsoft.Security.Membership.User(1, "admin"); Assert.Throws <ArgumentNullException>(() => user.Name = string.Empty); }