Normally when you alter code in your Microsoft Visual Studio test project, pressing [CTRL + R, T] will rebuild the project and will execute the correct code.

In my case altering the code in the unit test did not result in recompiling the test project.

 

Turns out the test project was disabled in the Configuration Manager:

 

image

 

Enabling the project in the configuration manager will resolve the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.