Skip to main content
4 events
when toggle format what by license comment
Feb 23, 2012 at 0:28 comment added Eric King But the point is, some folks may define 'unit test' differently, so we must be careful when applying 'unit test' guidance, as the guidance may not apply in the way we think it does.
Feb 23, 2012 at 0:24 comment added Eric King If you're hitting the database, it's (by definition) an integration test, not a unit test. So, in that sense, no. You cannot 'unit test' deleting from a database. What you can unit test is that when the code you are testing is asked to delete some data, it interacts with the data access module correctly.
Feb 22, 2012 at 23:32 comment added ChrisF So are you saying that you can't unit test deleting from the database?
Feb 22, 2012 at 22:27 history answered Eric King CC BY-SA 3.0