Customizing Database Unit Tests in Visual C# or Visual Basic

By using the Database Unit Test Designer, you can configure your database unit test in simple ways, such as adding Transact-SQL (T-SQL) script and test conditions. At that point, you can run the test and obtain results.

If you want it to perform more advanced tasks, you can customize your test code. For example, you can test a wider range of database objects and use Assert statements in a more precise way. By customizing your test, you can also use the Assert statements that the Unit Testing Framework provides.

In This Section

Reference

  • Using the Assert Classes
    Describes how you can use the Assert classes in the Microsoft.VisualStudio.TestTools.UnitTesting namespace to verify specific functionality of the code that you are testing.
  • Unit Testing Framework
    Describes how you can use the classes and members in the Microsoft.VisualStudio.TestTools.UnitTesting namespace for coding unit tests.