public void about_should_return_viewresult_and_page_with_about_tag_as_model() { // Arrange Page aboutPage = new Page() { Id = 1, Title = "about", Tags = "about" }; _pageRepository.AddNewPage(aboutPage, "text", "nobody", DateTime.Now); // Act ViewResult result = _helpController.About() as ViewResult; // Assert Assert.That(result, Is.Not.Null); PageViewModel model = result.ModelFromActionResult <PageViewModel>(); Assert.NotNull(model, "Null model"); Assert.That(model.Id, Is.EqualTo(aboutPage.Id)); Assert.That(model.Title, Is.EqualTo(aboutPage.Title)); }