public void Details_NullAgr() { ReleasePlanController controller = new ReleasePlanController(); Task <ActionResult> result = controller.Details(null) as Task <ActionResult>; Assert.IsTrue((result.Result as HttpStatusCodeResult).StatusCode == (int)HttpStatusCode.BadRequest); }
public void Details() { ReleasePlanController controller = new ReleasePlanController(); Task <ActionResult> result = controller.Details(1) as Task <ActionResult>; Assert.IsNotNull(result); }