ASP.NET-MVC – Can I use breakpoints (such as debugging) when ‘unit test’?

I’m browsing through the TDD FrontStore series of tutorials in MVC (Rob Conery/ASP.NET Part 3). The test I care about is CatalogRepository_Each_Category_Contains_5_Products(). Before I accept the test, everything Normal. Now, I have completed every line of this test (including the test itself, TestCatalogRepository,…). I also compared my code with Rob’s code, but the test still fails.

I also checked the source code of CodePlex, that test does not exist.

Now, I want to know if I can set a breakpoint somewhere to check the local value of the test being executed? If not, something similar?

Thank you for your help.

The debugging test should be exactly the same as the debugging code – Set a breakpoint and run the test in debugging (in MSTest ctrl R, ctrl T).

I am browsing the TDD FrontStore series of tutorials in MVC (Rob Conery / ASP.NET Part 3). The test I care about is CatalogRepository_Each_Category_Contains_5_Products(). Before I accepted the test, everything was normal. Now, I have completed every line of this test (including the test itself, TestCatalogRepository,…). I will also My code is compared with Rob’s code, but the test still fails.

I also checked the source code of CodePlex, and that test does not exist.

Now, I Want to know if I can set a breakpoint somewhere to check the local value of the test being executed? If not, something similar?

Thank you for your help.

The debug test should be exactly the same as the debug code-set a breakpoint and run the test in debug ( In MSTest ctrl R, ctrl T).

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2114 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.