/// <inheritdoc/>
        public virtual void Dispose()
        {
            RemoteDiscoverer.SafeDispose();
            Framework.SafeDispose();
#if NETFRAMEWORK
            assemblyHelper.SafeDispose();
#endif
            AppDomain.SafeDispose();
        }
 /// <inheritdoc/>
 public string Serialize(ITestCase testCase)
 => RemoteDiscoverer.Serialize(testCase);
 /// <summary>
 /// Starts the process of finding all xUnit.net v2 tests in a class.
 /// </summary>
 /// <param name="typeName">The fully qualified type name to find tests in.</param>
 /// <param name="includeSourceInformation">Whether to include source file information, if possible.</param>
 /// <param name="messageSink">The message sink to report results back to.</param>
 /// <param name="discoveryOptions">The options used by the test framework during discovery.</param>
 public void Find(string typeName, bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions)
 {
     RemoteDiscoverer.Find(typeName, includeSourceInformation, CreateOptimizedRemoteMessageSink(messageSink), discoveryOptions);
 }