public void IsUserInRoleTest() { GlobalIdentity g = new GlobalIdentity(); string[] roles =new[]{"Wolfie"}; IsUserInRoleResponse response = g.IsUserInRole(new IsUserInRoleRequest() { ApplicationKey = this.ApplicationKey, UserKey = this.UserKey, RoleCollection = roles.ToList() }); Assert.IsFalse(response.Success); roles[0] = "Doge"; response = g.IsUserInRole(new IsUserInRoleRequest() { ApplicationKey = this.ApplicationKey, UserKey = this.UserKey, RoleCollection = roles.ToList() }); Assert.IsTrue(response.Success); }