When im running unit testing no an action in the homecontroller i get the following error:
"Test method WhatsForLunch.Tests.Controllers.HomeControllerTest.Test_Index threw exception: System.NullReferenceException: Object reference not set to an instance of an object."
I know what is causing the error, which is the Session object that i set false and null
at application start and is further used to track user and hold user information when a user is logged in.
How do i set the object to an instance so that i can perfrom unit testing to the action??
thx in Advance
View Complete Post