コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void Should_Remove_Watcher()
 {
     redmineManager.RemoveWatcher(44, 8);
     Assert.Inconclusive();
 }