public async Task Should_Add_User_To_Group() { await redmineManager.AddUserToGroupAsync(groupId, int.Parse(userId)); User user = redmineManager.GetObject <User>(userId.ToString(CultureInfo.InvariantCulture), new NameValueCollection { { RedmineKeys.INCLUDE, RedmineKeys.GROUPS } }); CollectionAssert.AllItemsAreNotNull(user.Groups); CollectionAssert.AllItemsAreUnique(user.Groups); Assert.IsTrue(user.Groups.FirstOrDefault(g => g.Id == groupId) != null); }