public void Index_ReturnsViewResult_True() { ShipmentsController controller = new ShipmentsController(); ViewResult indexView = controller.Index() as ViewResult; Assert.IsInstanceOfType(indexView, typeof(ViewResult)); }
public void Index_HasCorrectModelType_ShipmentList() { ShipmentsController controller = new ShipmentsController(); ViewResult indexView = controller.Index() as ViewResult; var result = indexView.ViewData.Model; Assert.IsInstanceOfType(result, typeof(List <Shipment>)); }