I'm looking for a project/tool that will insert data into a database before a test and roll it back after a test has run.
I know that ruby on rails has yaml fixtures, so I was hoping there is a project out there for .net projects.
I'm looking for a project/tool that will insert data into a database before a test and roll it back after a test has run.
I know that ruby on rails has yaml fixtures, so I was hoping there is a project out there for .net projects.
I use Sql Server Compact Edition and regenerate a new copy of the database each time (simply copying an initial database is fine) and if used in read only mode multiple tests can share the same database file.
There are a few gotchas, and programmability is not supported but it works well for the basics that I needed it for. It is also surprisingly fast.
I've implemented a basic example of Rails-like fixtures for .NET on my blog.
http://www.davidmuto.com/Blog.muto/View/rails-like-fixtures-for-net
Any good?