public void StatusNotChanged_SameStatus() { var feedback = new Feedback("1", "TheFirstFeedback", 3, "This is a feedback created"); var result = Assert.ThrowsException <ArgumentException>(() => feedback.ChangeStatus(FeedbackStatusType.New)); Assert.AreEqual("Status already at 'New'.", result.Message); }
public void StatusChanged_NewStatus() { var feedback = new Feedback("1", "TheFirstFeedback", 3, "This is a feedback created"); feedback.ChangeStatus(FeedbackStatusType.Scheduled); Assert.AreEqual(FeedbackStatusType.Scheduled, feedback.FeedbackStatus); }