29.05.2015 Views

o_19mgorv9t13a3ko71fev19l81mqa.pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 6-4. Creating the unit test project<br />

Set the project name to EssentialTools.Tests and click the OK button to create the new project, which Visual<br />

Studio will add to the current solution alongside the MVC application project.<br />

I need to give the test project a reference to the application project so that it can access the classes and perform tests upon<br />

them. Right-click the References item for the EssentialTools.Tests project in the Solution Explorer, and then<br />

select Add Reference from the pop-up menu. Click Solution in the left panel and check the box next to the<br />

EssentialTools item, as shown in Figure 6-5.<br />

146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!