public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.IsNotNull(result); }
public void About() { // Disponer HomeController controller = new HomeController(); // Actuar ViewResult result = controller.About() as ViewResult; // Declarar Assert.IsNotNull(result); }
public void About() { // 排列 HomeController controller = new HomeController(); // 操作 ViewResult result = controller.About() as ViewResult; // 断言 Assert.IsNotNull(result); }
public void About() { // 정렬 HomeController controller = new HomeController(); // 동작 ViewResult result = controller.About() as ViewResult; // 어설션 Assert.IsNotNull(result); }
public void About() { // Setup HomeController controller = new HomeController(); // Execute ViewResult result = controller.About() as ViewResult; // Verify ViewDataDictionary viewData = result.ViewData; Assert.AreEqual("About Page", viewData["Title"]); }