C# Class NUnit.VisualStudio.TestAdapter.TestConverter

Inheritance: IDisposable
Mostrar archivo Open project: nunit/nunit-vs-adapter Class Usage Examples

Private Properties

Property Type Description
GetErrorMessage string
MakeTestCaseFromNUnitTest TestCase

Public Methods

Method Description
ConvertTestCase ( ITest test ) : TestCase

Converts an NUnit test into a TestCase for Visual Studio, using the best method available according to the exact type passed and caching results for efficiency.

ConvertTestResult ( NUnit.Core.TestResult result ) : Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult
GetCachedTestCase ( string key ) : TestCase
ResultStateToTestOutcome ( ResultState resultState ) : TestOutcome
TestConverter ( TestLogger logger, string sourceAssembly ) : System

Private Methods

Method Description
GetErrorMessage ( NUnit.Core.TestResult result ) : string
MakeTestCaseFromNUnitTest ( ITest nunitTest ) : TestCase

Makes a TestCase from an NUnit test, adding navigation data if it can be found.

Method Details

ConvertTestCase() public method

Converts an NUnit test into a TestCase for Visual Studio, using the best method available according to the exact type passed and caching results for efficiency.
public ConvertTestCase ( ITest test ) : TestCase
test ITest
return TestCase

ConvertTestResult() public method

public ConvertTestResult ( NUnit.Core.TestResult result ) : Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult
result NUnit.Core.TestResult
return Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult

GetCachedTestCase() public method

public GetCachedTestCase ( string key ) : TestCase
key string
return TestCase

ResultStateToTestOutcome() public static method

public static ResultStateToTestOutcome ( ResultState resultState ) : TestOutcome
resultState ResultState
return TestOutcome

TestConverter() public method

public TestConverter ( TestLogger logger, string sourceAssembly ) : System
logger TestLogger
sourceAssembly string
return System