public IEnumerable <IXunitTestCase> CreateRemoteTestCases(IEnumerable <IXunitTestCase> testCases, TestCaseDeserializerArgs testCaseDeserializerArgs)
        {
            var remoteObjectFactory = new RemoteObjectFactory(_appDomainContext.Domain, testCaseDeserializerArgs);
            var remoteTestCases     = testCases.Select(testCase => (IXunitTestCase)remoteObjectFactory.CreateTestCaseFrom(testCase)).ToArray();

            return(remoteTestCases);
        }
        public RemoteCancellationTokenSource CreateRemoteCancellationTokenSource(CancellationTokenSource cancellationTokenSource)
        {
            var remoteObjectFactory           = new RemoteObjectFactory(_appDomainContext.Domain, null);
            var remoteCancellationTokenSource = remoteObjectFactory.CreateRemoteCancellationTokenSource();

            _cancellationRegistration = cancellationTokenSource.Token.Register(remoteCancellationTokenSource.Cancel);
            return(remoteCancellationTokenSource);
        }