C# Класс Xunit.ExecutorWrapper

Wraps calls to the Executor. Used by runners to perform version-resilient test enumeration and execution.
Наследование: IExecutorWrapper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

EnumerateTests ( ) : XmlNode
ExecutorWrapper ( string assemblyFilename, string configFilename, bool shadowCopy ) : System

Initializes a new instance of the ExecutorWrapper class.

GetAssemblyTestCount ( ) : int
RunAssembly ( Predicate callback ) : XmlNode
RunClass ( string type, Predicate callback ) : XmlNode
RunTest ( string type, string method, Predicate callback ) : XmlNode
RunTests ( string type, List methods, Predicate callback ) : XmlNode

Приватные методы

Метод Описание
CreateAppDomain ( string assemblyFilename, string configFilename, bool shadowCopy ) : AppDomain
CreateObject ( string typeName ) : object
ExecutorWrapper ( ) : System

Initializes the ExecutorWrapper class.

GetDefaultConfigFile ( string assemblyFile ) : string
RethrowWithNoStackTraceLoss ( Exception ex ) : void

Описание методов

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

EnumerateTests() публичный Метод

public EnumerateTests ( ) : XmlNode
Результат System.Xml.XmlNode

ExecutorWrapper() публичный Метод

Initializes a new instance of the ExecutorWrapper class.
public ExecutorWrapper ( string assemblyFilename, string configFilename, bool shadowCopy ) : System
assemblyFilename string The assembly filename.
configFilename string The config filename. If null, the default config filename will be used.
shadowCopy bool Set to true to enable shadow copying; false, otherwise.
Результат System

GetAssemblyTestCount() публичный Метод

public GetAssemblyTestCount ( ) : int
Результат int

RunAssembly() публичный Метод

public RunAssembly ( Predicate callback ) : XmlNode
callback Predicate
Результат System.Xml.XmlNode

RunClass() публичный Метод

public RunClass ( string type, Predicate callback ) : XmlNode
type string
callback Predicate
Результат System.Xml.XmlNode

RunTest() публичный Метод

public RunTest ( string type, string method, Predicate callback ) : XmlNode
type string
method string
callback Predicate
Результат System.Xml.XmlNode

RunTests() публичный Метод

public RunTests ( string type, List methods, Predicate callback ) : XmlNode
type string
methods List
callback Predicate
Результат System.Xml.XmlNode