C# Class StatLight.Client.Harness.Hosts.MSTest.UnitTestProviders.MSTest.VsttProvider

Provider for the Visual Studio Team Test unit test (UT) framework metadata.
Inheritance: IUnitTestProvider
Show file Open project: staxmanade/StatLight Class Usage Examples

Public Methods

Method Description
GetUnitTestAssembly ( UnitTestHarness testHarness, Assembly assemblyReference ) : IAssembly
GetUnitTestAssembly ( UnitTestHarness testHarness, Assembly assemblyReference ) : IAssembly

VSTT unit test provider constructor; takes an assembly reference to perform reflection on to retrieve all test class types. In this implementation of an engine for the VSTT metadata, only a single test Assembly can be utilized at a time for simplicity.

HasCapability ( UnitTestProviderCapabilities capability ) : bool

Whether the capability is supported by this provider.

IsFailedAssert ( Exception exception ) : bool

Check if the Exception is actually a failed assertion.

VsttProvider ( ) : System

Create a new Visual Studio Team Test unit test framework provider instance.

Method Details

GetUnitTestAssembly() public method

public GetUnitTestAssembly ( UnitTestHarness testHarness, Assembly assemblyReference ) : IAssembly
testHarness Microsoft.Silverlight.Testing.Harness.UnitTestHarness
assemblyReference System.Reflection.Assembly
return IAssembly

GetUnitTestAssembly() public method

VSTT unit test provider constructor; takes an assembly reference to perform reflection on to retrieve all test class types. In this implementation of an engine for the VSTT metadata, only a single test Assembly can be utilized at a time for simplicity.
public GetUnitTestAssembly ( UnitTestHarness testHarness, Assembly assemblyReference ) : IAssembly
testHarness Microsoft.Silverlight.Testing.Harness.UnitTestHarness The unit test harness.
assemblyReference System.Reflection.Assembly Assembly reflection object.
return IAssembly

HasCapability() public method

Whether the capability is supported by this provider.
public HasCapability ( UnitTestProviderCapabilities capability ) : bool
capability UnitTestProviderCapabilities Capability type.
return bool

IsFailedAssert() public method

Check if the Exception is actually a failed assertion.
public IsFailedAssert ( Exception exception ) : bool
exception System.Exception Exception object to check.
return bool

VsttProvider() public method

Create a new Visual Studio Team Test unit test framework provider instance.
public VsttProvider ( ) : System
return System