数据的方法/框架,被推荐用于.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.