I'm trying to make a unit test project to test my ASP.NET web-forms application.
Whenever I run any test method, it gives me the following error:
Type is not resolved for member 'MySystem.Framework.Personalization.CustomPrincipal,MySystem.Framework.Personalization, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
I understand that I have to mock the personalization and web-related objects. And I know I should add certain config, but I don't know how. I couldn't find much help about writing config files for test projects.
net fan
Member
549 Points
189 Posts
Unit Test Config
Jul 06, 2012 09:43 AM|LINK
Hi All,
I'm trying to make a unit test project to test my ASP.NET web-forms application.
Whenever I run any test method, it gives me the following error:
Type is not resolved for member 'MySystem.Framework.Personalization.CustomPrincipal,MySystem.Framework.Personalization, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
I understand that I have to mock the personalization and web-related objects. And I know I should add certain config, but I don't know how. I couldn't find much help about writing config files for test projects.
Any help is really appreciated.
config Test Project tdd test driven development unit testing
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: Unit Test Config
Jul 06, 2012 10:18 AM|LINK
which testing framework are you using ?
net fan
Member
549 Points
189 Posts
Re: Unit Test Config
Jul 06, 2012 10:28 AM|LINK
I'm using the framework that comes with VS.NET 2010