Files
Umbraco-CMS/src/Umbraco.Tests/TestHelpers/DatabaseBehavior.cs
Shannon Deminick 2b750843c5 Fixed up base web test, removes RequiresDbSetup in place of new database behavior - NoDatabasePerFixture.
Fixed issue with another test... no idea how it didn't show up failing before.
Fixes issue with string extensions and an infinite loop when the string to strip is empty/null.
2013-03-15 11:28:05 +06:00

33 lines
1.1 KiB
C#

namespace Umbraco.Tests.TestHelpers
{
/// <summary>
/// The behavior used to control how the database is handled for test fixtures inheriting from BaseDatabaseFactoryTest
/// </summary>
public enum DatabaseBehavior
{
/// <summary>
/// A database is not required whatsoever for the fixture
/// </summary>
NoDatabasePerFixture,
/// <summary>
/// For each test a new database file and schema will be created
/// </summary>
NewDbFileAndSchemaPerTest,
/// <summary>
/// For each test a new schema will be created on the existing database file
/// </summary>
NewSchemaPerTest,
/// <summary>
/// Creates a new database file and schema for the whole fixture, each test will use the pre-existing one
/// </summary>
NewDbFileAndSchemaPerFixture,
/// <summary>
/// Creates a new schema based on the existing database file for the whole fixture, each test will use the pre-existing one
/// </summary>
NewSchemaPerFixture,
}
}