The problem with that approach is you won't actually know if the data has be successfully stored. The steps should be as follows:
Insert a new record
Select that record and create a sanity assert to assure an object was returned
Delete the record
Select the record again and create a sanity assert to assure a null was returned
Aquaren
Contributor
2360 Points
421 Posts
Re: isolating database in tests
Mar 15, 2010 12:05 PM|LINK
The problem with that approach is you won't actually know if the data has be successfully stored. The steps should be as follows:
Insert a new record
Select that record and create a sanity assert to assure an object was returned
Delete the record
Select the record again and create a sanity assert to assure a null was returned