public void TestLoadRoles() { RolesCatalog catalog = new RolesCatalog(); catalog.LoadRoles(new string[] {"role1", "role2"}); Assert.AreEqual(2, catalog.Roles.Count); Assert.IsTrue(catalog.Roles.Contains("role1")); Assert.IsTrue(catalog.Roles.Contains("role2")); }
public void TestLoadRoles() { RolesCatalog catalog = new RolesCatalog(); catalog.LoadRoles(new string[] { "role1", "role2" }); Assert.AreEqual(2, catalog.Roles.Count); Assert.IsTrue(catalog.Roles.Contains("role1")); Assert.IsTrue(catalog.Roles.Contains("role2")); }
public void TestInitialization() { RolesCatalog catalog = new RolesCatalog(); Assert.IsNotNull(catalog.Roles); }