public void DeleteComment() { ViewResult result = controller.DeleteComment(2) as ViewResult; var deletedComment = db.FindComment(2); Assert.AreEqual(null, deletedComment); }