public void BlogArticleNotFoundTest() { var controller = new BlogController(); // non-existent slug var slug = "aaaaaaaaaaaaaaaaaa"; controller.Article(slug); }
public void BlogArticleFoundTest() { var controller = new BlogController(); // non-existent slug var slug = "all-the-tourist-stuff-you-should-probably-do-in-stockholm"; var result = controller.Article(slug); Assert.IsInstanceOfType(result, (typeof(ActionResult))); }