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)); }
public void About_WhenCalled_ReturnPartialViewResult() { var result = _controller.About(_topic1.Id); Assert.That(result, Is.TypeOf <PartialViewResult>()); }