Adding unit testing to an existing asp.net web forms application

前端 未结 4 2006
一个人的身影
一个人的身影 2021-01-13 04:25

I have an existing asp.net webforms application that I would like to add some unit testing to but am unsure of exactly how to go about it.

The application is databas

4条回答
  •  一个人的身影
    2021-01-13 05:12

    I would most likely test the backing methods that your web forms call (bypassing the forms validation), this will let you test the logic and data access.

    As for the test data, a seperate test database would be the best option. Otherwise i suggest having the test methods remove the test data once its completed.

提交回复
热议问题