public void UserCommentsDelete() { UserCommentsController controller = new UserCommentsController(); var result = controller.Delete(1); Assert.IsNotNull(result); }
public void UserCommentsDeleteNotFount() { UserCommentsController controller = new UserCommentsController(); var result = (HttpStatusCodeResult)controller.Delete(-1); Assert.AreEqual(404, result.StatusCode); Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult)); }