Home > Services > DXCore Services – UnitTests

DXCore Services – UnitTests

July 4th, 2011

The UnitTests DXCore service provides methods for executing and debugging unit test cases and test collections in the specified scopes. Allows to add custom context menu items into the drop-down menu of a Unit Test Runner Tile in the code editor.

Methods of the service:

Method name Description
AbortTestRun Aborts the currently unit test running session.
CreateContextMenuItem Creates a custom context menu item into the drop-down menu of a Test Runner Tile in the code editor.
Debug Starts debugging all test cases in the current solution.
Debug(IMemberElement) Starts debugging all test cases in the specified member.
Debug(INamespaceElement) Starts debugging all test cases in the specified namespace.
Debug(IProjectElement) Starts debugging all test cases in the specified project.
Debug(ITypeElement) Starts debugging all test cases in the specified type declaration.
Debug(TestMethod) Starts debugging the specified test method.
Debug(TestMethodCollection) Starts debugging the specified test method collection.
Execute Executes all test cases in the current solution.
Execute(IMemberElement) Executes all test cases in the specified member.
Execute(INamespaceElement) Executes all test cases in the specified namespace.
Execute(IProjectElement) Executes all test cases in the specified project.
Execute(ITypeElement) Executes all test cases in the specified type declaration.
Execute(TestMethod) Executes the specified test method.
Execute(TestMethodCollection) Executes the specified test method collection.

Properties:

Property name Description
ServiceState Returns a state of the testing service (testing started, searching of test cases, building projects, pending).
Tests Returns a test method collection containing all found test cases in the current solution.
—–
Products: DXCore
Versions: 11.1 and up
VS IDEs: any
Updated: Jul/19/2011
ID: D081

Similar Posts: