I have a problem with testing.
In a test codeunit I am inserting a record to a table.
In application, which is being tested, I have a subscriber to OnAfterInsertEvent, which is modifying a record if some particular conditions are satisfied.
Debugger stops on "Modify();" line and after that all I can see is "Transaction was rolled back by the server." and my test functions is being skipped.
Any idea why? And how to solve that?