Пример #1
0
        public void EditIcon_UserIsAnswerOwner_ShouldReturnPartialViewResult()
        {
            var question = _context.AddTestQuestionToDatabase();
            var answer   = _context.AddTestAnswerToDatabase(question.Id);

            var result = _controller.EditIcon(answer.Id);

            Assert.That(result, Is.TypeOf <PartialViewResult>());
        }
Пример #2
0
        public void EditIcon_UserIsAnswerOwner_ReturnPartialView()
        {
            var result = _controller.EditIcon(_answer1.Id);

            Assert.That(result, Is.TypeOf <PartialViewResult>());
        }