NUnit.Framework.Internal.SafeSynchronizationContext
This context is used to protect test execution from any exceptions
public static SafeSynchronizationContext Create(SynchronizationContext synchronizationContext, TestExecutionContext executionContext)
Creates either a SafeSynchronizationContext or a SafeIndirectSynchronizationContext
Executes the delegate safely, catching any exceptions and recording them in the test result.