public void TestSubredditViewName()
        {
            var controller = new SubredditController();
            var result     = controller.Index("") as ViewResult;

            Assert.AreEqual("Index", result.ViewName);
        }
        public void TestSubredditPostName()
        {
            var controller = new SubredditController();
            var result     = controller.Index("AskReddit") as ViewResult;
            var subreddit  = (Subreddit)result.ViewData.Model;

            Assert.AreEqual("AskReddit", subreddit.ListPosts[0].Subreddit);
        }