C# Class Xunit.XunitFrontController

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

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
CreateInnerController ( ) : IFrontController

FOR INTERNAL USE ONLY.

XunitFrontController ( ) : System

This constructor is for unit testing purposes only.

Method Details

CreateInnerController() protected méthode

FOR INTERNAL USE ONLY.
protected CreateInnerController ( ) : IFrontController
Résultat IFrontController

Deserialize() public méthode

public Deserialize ( string value ) : ITestCase
value string
Résultat ITestCase

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Find() public méthode

public Find ( bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions ) : void
includeSourceInformation bool
messageSink IMessageSink
discoveryOptions ITestFrameworkDiscoveryOptions
Résultat void

Find() public méthode

public Find ( string typeName, bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions ) : void
typeName string
includeSourceInformation bool
messageSink IMessageSink
discoveryOptions ITestFrameworkDiscoveryOptions
Résultat void

RunAll() public méthode

public RunAll ( IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions, ITestFrameworkExecutionOptions executionOptions ) : void
messageSink IMessageSink
discoveryOptions ITestFrameworkDiscoveryOptions
executionOptions ITestFrameworkExecutionOptions
Résultat void

RunTests() public méthode

public RunTests ( IEnumerable testMethods, IMessageSink messageSink, ITestFrameworkExecutionOptions executionOptions ) : void
testMethods IEnumerable
messageSink IMessageSink
executionOptions ITestFrameworkExecutionOptions
Résultat void

Serialize() public méthode

public Serialize ( ITestCase testCase ) : string
testCase ITestCase
Résultat string

XunitFrontController() protected méthode

This constructor is for unit testing purposes only.
protected XunitFrontController ( ) : System
Résultat System

XunitFrontController() public méthode

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.
Résultat System