コード例 #1
0
        public void DeleteQuestionUserQuitsDialog_ShouldReturnValidFalse()
        {
            ViewDeleteQuestion view = new ViewDeleteQuestion();
            Boolean expected = false;

            Boolean result = view.valid;

            Assert.AreEqual(expected, result);
        }
コード例 #2
0
        public void DeleteQuestionUserConfirmsPositive_ShouldReturnValidTrue()
        {
            ViewDeleteQuestion view = new ViewDeleteQuestion();
            view.buttonOk_Click();
            Boolean expected = true;

            Boolean result = view.valid;

            Assert.AreEqual(expected, result);
        }
コード例 #3
0
        public void DeleteQuestionUserConfirmsNegative_ShouldReturnValidFalse()
        {
            ViewDeleteQuestion view = new ViewDeleteQuestion();
            view.buttonCancel_Click();
            Boolean expected = false;

            Boolean result = view.valid;

            Assert.AreEqual(expected, result);
        }