I run a unit test to test functionality that includes ManualResetEvents.
The actual unit test (and the actual code) itself succeeds. However, after completing the unit test, I get an AppDomainUnloadedException Error - An attempt to access the unloaded AppDomain error .
At first I thought that this might be due to some other code, but in the further investigation it seems that this is due to the use of multithreading here?
I tried some suggestions that I found, for example, set the execution mode to MTA, etc., but the error still occurs.
Is there a way to fix this, or at least suppress this error that occurred at the end of a successful unit test launch?
source share