public void IndexTest() { IArticleServices articleService = IoCHelper.Resolve <IArticleServices>(); AjaxController target = new AjaxController(articleService); // TODO: 初始化为适当的值 string jsoncallback = string.Empty; // TODO: 初始化为适当的值 ActionResult expected = null; // TODO: 初始化为适当的值 ActionResult actual; actual = target.Index(jsoncallback); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
public void TestAjaxController_IndexAction() { ViewResult result = controller.Index() as ViewResult; Assert.IsNotNull(result); }