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_Test2() { // Initialization TeamProfilesController ctl = new TeamProfilesController(); // To test if it is null var result = ctl.Details(21); Assert.IsNotNull(result); // To test if it is a valid id var model = (profile)((ViewResult)result).Model; Assert.IsNotNull(model); //var model = (HttpStatusCodeResult)result; //Assert.AreEqual(400, model.StatusCode); }