public void RedmineIssues_ShouldRemoveWatcher() { redmineManager.RemoveWatcher(19, 2); Issue issue = redmineManager.GetObject <Issue>("19", new NameValueCollection { { "include", "watchers" } }); Assert.IsTrue(issue.Watchers == null || ((List <Watcher>)issue.Watchers).Find(w => w.Id == 2) == null); }
public void RedmineIssues_ShouldRemoveWatcher() { redmineManager.RemoveWatcher(watcherIssueId, watcherUserId); Issue issue = redmineManager.GetObject <Issue>(watcherIssueId.ToString(), new NameValueCollection { { "include", "watchers" } }); Assert.IsTrue(issue.Watchers == null || ((List <Watcher>)issue.Watchers).Find(w => w.Id == watcherUserId) == null); }
public void Should_Remove_Watcher() { redmineManager.RemoveWatcher(44, 8); Assert.Inconclusive(); }