I have a previous question:
I followed Peter Knolle advice and so far I have 90% coverage. I’m Just going through the code when I have time to reach the max coverage possible, but I ended up having multiple test codes for the same APEX code where each one represents a different scenario. Is it possible to add them up into one code?
For example [referring to the example in the link above] when I try adding up two test codes in one file, and I need to delete an account so I can change things in the account and then insert the new account,
It tells me that I have a duplicate record when I try to run:
System.assertEquals(null, retPageRef, 'PageReference returned should be null');
How can I delete the records completely? Using delete account does not seem to work