Use System.assert() for a deleted record

Use System.assert() for a deleted record -


Verify the account no longer exists by querying like

System.assertEquals(0, [SELECT COUNT() FROM Account WHERE Id = :testAccount.Id], 'Account should be deleted');


Comments