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:
- convert website web application project , unit test accordingly.
- 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
Post a Comment