コード例 #1
0
 public void IsInRoleFalseTest()
 {
     CloudPrincipal cloudPrincipal = new CloudPrincipal(_roles, _cloudIdentity);
     Assert.IsFalse(cloudPrincipal.IsInRole("role2"));
 }
コード例 #2
0
 public void IsInRoleTest()
 {
     CloudPrincipal cloudPrincipal = new CloudPrincipal(_roles, _cloudIdentity);
     Assert.IsTrue(cloudPrincipal.IsInRole(_roles[0]));
 }
コード例 #3
0
 public void IdentityTest()
 {
     CloudPrincipal cloudPrincipal = new CloudPrincipal(_roles, _cloudIdentity);
     Assert.AreSame(_cloudIdentity, cloudPrincipal.Identity);
 }