CMS.Tests Namespace |
Class | Description | |
---|---|---|
AppStateReset |
Provides support for reset of application state
| |
AppStateResetFieldState |
Container for holding the specific field state
| |
AutomatedTests |
Base class for advanced tests
| |
AutomatedTestsWithConnString |
Base class for tests that use connection string from config file
| |
AutomatedTestsWithData |
Base class for automated tests with data support
| |
Benchmark |
Benchmark class
| |
BenchmarkResult |
Benchmark result class
| |
Category |
Class containing specific category attributes
| |
CategoryIntegrationAttribute |
Integration test category
| |
CategoryIsolatedIntegrationAttribute |
Isolated integration test category
| |
CategoryJavaScriptAttribute |
Java script test category
| |
CategoryLongRunningAttribute |
Long-running test category
| |
CategoryUITestsAttribute |
UI test category
| |
CategoryUnitAttribute |
Unit test category
| |
CMSAssert |
Custom assertions
| |
CreateDatabaseBeforeTestsAttribute | Indicates that database for isolated integration tests is created prior to executing any of the tests in the class. This database can be filled with custom objects during 'TestFixtrueSetup' / 'ClassInitialize'. Each test uses copy of this database. | |
ExtraDatabaseAttribute |
Provides an extra database within the given test
The extra database can be use by a block of code using method ExecuteWithExtraDatabase
You can alternatively use method EnsureExtraDatabase(String) to initialize an extra database on-the-fly
| |
FakeClassStructureInfo |
Class structure info for testing purposes
| |
FakeClassStructureInfoT |
Class structure info for testing purposes
| |
FakeEventLogProvider |
Fake event log provider for tests. By default reports logged errors as failed test, logs warnings to output, and ignores information.
| |
FakeMethods |
Class providing methods for faking the data
| |
FakeStorageProvider |
Testing IO storage provider.
Usage example:
[Test]
public void SampleTestMethod()
{
TestStorageProvider provider = TestStorageProvider.GetMappedProvider();
provider.FileObject.ReadAllText("path").ReturnsForAnyArgs("text");
string result = CMS.IO.File.ReadAllText("path");
Assert.AreEqual("text", result);
}
| |
IntegrationTests |
Base class for integration tests
| |
IsolatedIntegrationTests |
Allows integration tests to run in isolation as for each test a clean database with current schema and default objects is created.
| |
JSONConstraint |
Constraint that compares two JSON sources with each other.
| |
RelatedBugAttribute |
Indicates that test was created due to bug fix.
| |
SharedDatabaseForAllTestsAttribute |
Indicates that database is shared for all isolated integration tests that are in same class.
(ie. Database is created before first test run and it is deleted after last test run)
| |
TestExtender |
Base class for test extenders
| |
TestExtenderTParentTest |
Generic base class for test extender
| |
TestsConfig |
Shared tests configuration
| |
UnitTestExtensions |
Extension methods for tests
| |
UnitTests |
Base class for integration tests
| |
WebAppInstanceTests |
Base class for integration tests that require running web app instance.
|
Interface | Description | |
---|---|---|
IFake |
Interface for the fakes
|