public async Task Should_Remove_User_From_Group() { await redmineManager.DeleteUserFromGroupAsync(groupId, int.Parse(userId)); User user = await redmineManager.GetObjectAsync <User>(userId.ToString(CultureInfo.InvariantCulture), new NameValueCollection { { RedmineKeys.INCLUDE, RedmineKeys.GROUPS } }); Assert.IsTrue(user.Groups == null || user.Groups.FirstOrDefault(g => g.Id == groupId) == null); }