C# Class Xunit.ExecutorWrapper

Wraps calls to the Executor. Used by runners to perform version-resilient test enumeration and execution.
Inheritance: IExecutorWrapper
Mostra file Open project: quetzalcoatl/xvsr10 Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

EnumerateTests() public method

public EnumerateTests ( ) : XmlNode
return System.Xml.XmlNode

ExecutorWrapper() public method

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.
return System

GetAssemblyTestCount() public method

public GetAssemblyTestCount ( ) : int
return int

RunAssembly() public method

public RunAssembly ( Predicate callback ) : XmlNode
callback Predicate
return System.Xml.XmlNode

RunClass() public method

public RunClass ( string type, Predicate callback ) : XmlNode
type string
callback Predicate
return System.Xml.XmlNode

RunTest() public method

public RunTest ( string type, string method, Predicate callback ) : XmlNode
type string
method string
callback Predicate
return System.Xml.XmlNode

RunTests() public method

public RunTests ( string type, List methods, Predicate callback ) : XmlNode
type string
methods List
callback Predicate
return System.Xml.XmlNode