How are people unit testing code that uses Linq to SQL

后端 未结 7 827
生来不讨喜
生来不讨喜 2021-01-30 06:24

How are people unit testing code that uses Linq to SQL?

7条回答
  •  温柔的废话
    2021-01-30 07:18

    Linq makes testing much easier. Linq queries work just as well on Lists as on the Linq-to-sql stuff. You can swap out Linq to SQL for list objects and test that way.

提交回复
热议问题