コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }