O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running a set of tests

In the previous recipe, you learned how to define the first unit test. However, only one test is not enough to thoroughly test the solution. For this reason, you should specify a set of them as well as run them frequently to ensure that newly introduced changes do not cause any regression, that is, new features do not cause problems with the existing modules. In this recipe, you will learn how to add a few other test cases as well as how to run them to check whether all of them have passed.

Getting ready

To step through this recipe, you need the project from the previous recipe.

How to do it...

To learn how to run a set of tests, perform the following steps:

  1. Create a set of tests to thoroughly test the ConsumptionCalculator

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required