示例#1
0
        public void About_WhenCalled_ShouldReturnTopicInViewModel()
        {
            var topic = _context.AddTestTopicToDatabase();

            var result = _controller.About(topic.Id);

            Assert.That((result.Model as Topic).Id, Is.EqualTo(topic.Id));
        }
示例#2
0
        public void About_WhenCalled_ReturnPartialViewResult()
        {
            var result = _controller.About(_topic1.Id);

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