public void IsInRoleFalseTest() { CloudPrincipal cloudPrincipal = new CloudPrincipal(_roles, _cloudIdentity); Assert.IsFalse(cloudPrincipal.IsInRole("role2")); }
public void IsInRoleTest() { CloudPrincipal cloudPrincipal = new CloudPrincipal(_roles, _cloudIdentity); Assert.IsTrue(cloudPrincipal.IsInRole(_roles[0])); }
public void IdentityTest() { CloudPrincipal cloudPrincipal = new CloudPrincipal(_roles, _cloudIdentity); Assert.AreSame(_cloudIdentity, cloudPrincipal.Identity); }