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