public void CommentsTest() { IssueTransition target = DefaultTestTranstion(); Assert.AreEqual(target.Comments, TestComment); target = new IssueTransition(TestStatus, TestTranstionTimestamp, null); Assert.AreEqual(target.Comments, string.Empty); }
public void IssueTransitionConstructorTest() { IssueTransition target = DefaultTestTranstion(); Assert.IsInstanceOfType(target, typeof(IssueTransition)); target = new IssueTransition(TestStatus, TestTranstionTimestamp, null); Assert.IsInstanceOfType(target, typeof(IssueTransition)); }
public void UpdateStatus(IssueStatus newStatus, DateTime occurredOn, string comments = "") { if (occurredOn < EntryDate) throw new ArgumentException(); IssueTransition transition = new IssueTransition(newStatus, occurredOn, comments); Transitions.Add(transition.OccurredOn, transition); }