C# Class Xunit.XunitFrontController

Default implementation of IFrontController which supports running tests from both xUnit.net v1 and v2.
Inheritance: IFrontController
Exibir arquivo Open project: xunit/xunit Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Deserialize ( string value ) : ITestCase
Dispose ( ) : void
Find ( bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions ) : void
Find ( string typeName, bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions ) : void
RunAll ( IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions, ITestFrameworkExecutionOptions executionOptions ) : void
RunTests ( IEnumerable testMethods, IMessageSink messageSink, ITestFrameworkExecutionOptions executionOptions ) : void
Serialize ( ITestCase testCase ) : string
XunitFrontController ( AppDomainSupport appDomainSupport, string assemblyFileName, string configFileName = null, bool shadowCopy = true, string shadowCopyFolder = null, ISourceInformationProvider sourceInformationProvider = null, IMessageSink diagnosticMessageSink = null ) : System

Initializes a new instance of the XunitFrontController class.

Protected Methods

Method Description
CreateInnerController ( ) : IFrontController

FOR INTERNAL USE ONLY.

XunitFrontController ( ) : System

This constructor is for unit testing purposes only.

Method Details

CreateInnerController() protected method

FOR INTERNAL USE ONLY.
protected CreateInnerController ( ) : IFrontController
return IFrontController

Deserialize() public method

public Deserialize ( string value ) : ITestCase
value string
return ITestCase

Dispose() public method

public Dispose ( ) : void
return void

Find() public method

public Find ( bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions ) : void
includeSourceInformation bool
messageSink IMessageSink
discoveryOptions ITestFrameworkDiscoveryOptions
return void

Find() public method

public Find ( string typeName, bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions ) : void
typeName string
includeSourceInformation bool
messageSink IMessageSink
discoveryOptions ITestFrameworkDiscoveryOptions
return void

RunAll() public method

public RunAll ( IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions, ITestFrameworkExecutionOptions executionOptions ) : void
messageSink IMessageSink
discoveryOptions ITestFrameworkDiscoveryOptions
executionOptions ITestFrameworkExecutionOptions
return void

RunTests() public method

public RunTests ( IEnumerable testMethods, IMessageSink messageSink, ITestFrameworkExecutionOptions executionOptions ) : void
testMethods IEnumerable
messageSink IMessageSink
executionOptions ITestFrameworkExecutionOptions
return void

Serialize() public method

public Serialize ( ITestCase testCase ) : string
testCase ITestCase
return string

XunitFrontController() protected method

This constructor is for unit testing purposes only.
protected XunitFrontController ( ) : System
return System

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