什么样的测试数据的方法/框架,被推荐用于.NET单元测试 [英] what test data approach/framework is recommended for .net unit testing
本文介绍了什么样的测试数据的方法/框架,被推荐用于.NET单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
数据的方法/框架,被推荐用于.NET单元测试考什么?我在VS2010,C#,做商业逻辑层测试。
what test data approach/framework is recommended for .net unit testing? I'm in VS2010, C#, doing business logic layer testing.
通过方法我的意思是像:创建数据库快照,编程每次都创建,等等等等就像用什么办法,以确保在每个测试数据库处于一个已知状态开始
By approaches I mean like: creating database snapshots, programmatically creating each time, etc etc. Like what approach to use to ensure at the start of each test the database is in a known state.
推荐答案
有人会说,如果你正在使用的数据库,那么你在做功能测试,而不是单元测试。
Some would say that if you're using the database, then you're doing functional testing, not unit testing.
这篇关于什么样的测试数据的方法/框架,被推荐用于.NET单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文