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

前端 未结 4 1974
一个人的身影
一个人的身影 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:04

    For database related unit testing we use a seperate and stable test database to execute unit tests against.

    We also wrap data modification tests in a TransactionScope that is not commited, therefor rolling back the data changes for subsequent test runs. We've found this works really well.

提交回复
热议问题