public void Index() { // Arrange var controller = new HomeController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.IsNotNull(result); }
public void TestGetBillJsonData() { var controller = new HomeController(); var data = controller.GetBillJsonData() as BillViewModel; Assert.IsNotNull(data); }