Allows integration tests to run in isolation as for each test a clean database with current schema and default objects is created.
System Object CMS.Tests AbstractsTestsBase CMS.Tests IsolatedIntegrationTestsNamespace: CMS.TestsAssembly: CMS.Tests (in CMS.Tests.dll) Version: 8.0.0.0 (8.0.5239.26125)
The isolated integration tests use LocalDB to create and drop databases when needed. It works with two types of database.
The master database is created using SQL scripts from the Kentico solution. For each modification of this folder a new master database is created.
The master database is detached after it has been created and its files are copied to create an instance database that a running test will use.
The instance and master databases share a name, but the file names are different.
The instance database is removed when a test finishes and a master database, that is out of date, is removed automatically.