public void TestDetailsView() { var controller = new GoOnline.Controllers.HomeController(); var result = controller.Details(2) as ViewResult; Assert.AreEqual("Details", result.ViewName); }
public void HomeContact() { GoOnline.Controllers.HomeController obj = new GoOnline.Controllers.HomeController(); ViewResult result = obj.Contact() as ViewResult; Assert.IsNotNull(result); }