コード例 #1
0
        public void InterviewQuestion_Update_Failure()
        {
            InterviewQuestion oQuestion = GetInterviewQuestionFromTemporaryHandler();

            //set invalid property
            var res = oQuestion.Update(true, 2222, "testing");

            Assert.IsFalse(res.Success, "Trying to set invalid question response length did not fail.");
        }
コード例 #2
0
        public void InterviewQuestion_Update_Success()
        {
            InterviewQuestion oQuestion = GetInterviewQuestionFromTemporaryHandler();

            //change description text
            var res = oQuestion.Update(true, 11, "testing");

            Assert.IsTrue(res.Success, "Failed to update question values:" + res);
        }