Книга: C# 2008 Programmer

Running the Test

Running the Test

Before you run the unit test, take a look at the Test Tools toolbar (see Figure  2-73) automatically shown in Visual Studio 2008.


Figure 2-73 

To run the unit test, click the Run All Tests in Solution button in the toolbar. In this case, the lengthTest() method passed the test. The length between two points (3,4) and (0,0) is indeed 5 (see Figure 2-74).


Figure 2-74 

You can make modifications to the lengthTest() method to test other parameters. In the Test Results window, you have the option to view the previous test results (see Figure 2-75).


Figure 2-75

Оглавление книги


Генерация: 2.721. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз