CodeRush is shipped with the necessary assemblies required to run unit tests. However, if you are using a specific framework version, you may need to run tests using your library. If you already have a testing framework in your project, refer to the Use Integrated Framework section. Otherwise, follow the instructions in the Install a Testing Framework section.
Follow the steps below to download and reference the necessary testing framework using the NuGet Package Manager Console.
Enter one of the following commands depending on the testing framework you are going to use:
After referencing a testing framework, you can start creating unit tests.
When the solution contains one or more unit tests, you can run them using the Unit Test Runner. Refer to the Running and Debugging Tests article to learn more about the test runner.
CodeRush is shipped with several versions of the most common testing frameworks:
This section describes how to configure the Unit Test Runner to run tests using the unit testing framework library that you already have.
The paths to libraries used for running tests are configured in the Unit Testing | Test Runner options page. At the Supported frameworks section, choose the required framework to see what libraries are used for running tests. Use the ellipsis button at the right of a path to a library to change the library reference.