Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: .NET
Expertise: Intermediate
Aug 31, 2018

Quickly Test a Block of Code in .NET

Write a test method around the block of code that you want to test as an independent piece. Then, compile the code. Just open the test explorer window and right click on the method and choose to Run test. Results should be returned quickly.

Doing this saves a lot of time that would normally be spent in building code and executing the life cycle methods.

Srinath M S
Thanks for your registration, follow us on our social networks to keep up-to-date