Xunit.XunitFrontController.XunitFrontController C# (CSharp) Method

XunitFrontController() public method

Initializes a new instance of the XunitFrontController class.
public XunitFrontController ( AppDomainSupport appDomainSupport, string assemblyFileName, string configFileName = null, bool shadowCopy = true, string shadowCopyFolder = null, ISourceInformationProvider sourceInformationProvider = null, IMessageSink diagnosticMessageSink = null ) : System
appDomainSupport AppDomainSupport Determines whether tests should be run in a separate app domain.
assemblyFileName string The test assembly.
configFileName string The test assembly configuration file.
shadowCopy bool If set to true, runs tests in a shadow copied app domain, which allows /// tests to be discovered and run without locking assembly files on disk.
shadowCopyFolder string The path on disk to use for shadow copying; if null, a folder /// will be automatically (randomly) generated
sourceInformationProvider ISourceInformationProvider The source information provider. If null, uses the default ().
diagnosticMessageSink IMessageSink The message sink which received messages.
return System
        public XunitFrontController(AppDomainSupport appDomainSupport,
                                    string assemblyFileName,
                                    string configFileName = null,
                                    bool shadowCopy = true,
                                    string shadowCopyFolder = null,
                                    ISourceInformationProvider sourceInformationProvider = null,
                                    IMessageSink diagnosticMessageSink = null)
        {
            this.appDomainSupport = appDomainSupport;
            this.assemblyFileName = assemblyFileName;
            this.configFileName = configFileName;
            this.shadowCopy = shadowCopy;
            this.shadowCopyFolder = shadowCopyFolder;
            this.sourceInformationProvider = sourceInformationProvider;
            this.diagnosticMessageSink = diagnosticMessageSink ?? new NullMessageSink();

            Guard.FileExists("assemblyFileName", assemblyFileName);

            if (this.sourceInformationProvider == null)
            {
#if NETSTANDARD1_1
                this.sourceInformationProvider = new NullSourceInformationProvider();
#else
                this.sourceInformationProvider = new VisualStudioSourceInformationProvider(assemblyFileName);
#endif
                toDispose.Push(this.sourceInformationProvider);
            }

        }

Same methods

XunitFrontController::XunitFrontController ( ) : System