NDbUnit is a .NET library for managing database state during unit testing.
NDbUnit may be used to increase repeatability in unit tests that interact with a database by ensuring that the database's state is consistent across execution of tests. NDbUnit does this by allowing the unit test to perform an operation on a dataset before or after the execution of a test, thus ensuring a consistent state.
To better understand how NDbUnit works, check out the Quick Start Guide
NDbUnit:
- is an open-source LGPL-licensed project
- is written in C#
- compiled against the .NET 2.0 CLR and runs with the 2.0, 3.0, and 3.5 fx releases
- borrows many ideas from DbUnit, and makes them available for the .NET platform
NDbUnit supports the following Database Server Targets:
- Microsoft SQL Server 2005 and 2008
- Microsoft SQL Server CE 2005 and 2008
- Microsoft OleDB-supported databases
- SQLLite
- MySQL
- Oracle (not yet available, coming mid-2009)