How to do Unit test for Asp.net which of type website? -


i created asp.net website not project. unit testing website. created unit test project problem arises when tried reference website i.e., website reference not coming while adding reference.

you cannot directly unit test asp.net website project due website project compiles @ runtime , unit test require reference classes part of compiled dll. options have available are:

  1. convert website web application project , unit test accordingly.
  2. or move relevent code app_code library project , reference dll website project.

both of above options provide access classes in compiled dll format can can used unit test.

i hope helps


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -