Nice article on Unit Test

Recently we came across situation where we are using session in the controller’s action and we have to write unit test case for that action. Here is nice article which describe different approaches to write test case for this scenario with and without using open source test frameworks like MOQ.

http://stephenwalther.com/archive/2008/07/01/asp-net-mvc-tip-12-faking-the-controller-context.aspx

 

This entry was posted in MVC. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s