Each SQL Server unit test contains a single pre-test action, test action, and post-test action. Each of these actions in turn contains the following: A Transact-SQL script that executes on a database.