Click here to Skip to main content
15,884,388 members
Articles / DevOps / Unit Testing

Unit Testing with C#, including MVC

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
20 Sep 2020CPOL27 min read 18.2K   214   10  
A discussion of what to unit test in your C# code and how to test it, including a section covering MVC
This article will tackle what code you should unit test and how you should test it, and also what you shouldn't be testing. As well as general C# code, there is also a section on MVC which includes explanations on how you can test code that relies on Session, cookies, etc.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions