NUnit.Framework.Internal.SafeSynchronizationContext
public static SafeSynchronizationContext Create(SynchronizationContext synchronizationContext, TestExecutionContext executionContext)
Executes the delegate safely, catching any exceptions and recording them in the test result.