public void RedmineUser_ShouldDeleteUserFromGroup() { redmineManager.DeleteUser(groupId, int.Parse(userId)); User user = redmineManager.GetObject <User>(userId.ToString(), new NameValueCollection { { "include", "groups" } }); Assert.IsTrue(user.Groups == null || user.Groups.Find(g => g.Id == groupId) == null); }