public void TeamProfilesController_Details_Test3() { // Initialization TeamProfilesController ctl = new TeamProfilesController(); // To test if it is null var result = ctl.Details(999); Assert.IsNotNull(result); // To test if it is a valid id var model = (HttpStatusCodeResult)result; Assert.AreEqual(404, model.StatusCode); }
public void TeamProfilesController_Details_Test4() { // Initialization TeamProfilesController ctl = new TeamProfilesController(); // To test if it is null var result = ctl.Details(1); Assert.IsNotNull(result); // To test if it is a valid id //var model = (HttpStatusCodeResult)result; var model = (profile)((ViewResult)result).Model; Assert.IsNotNull(model); }