Classes
Class | Description | |
---|---|---|
AutomatedTests |
Base class for advanced tests
| |
Benchmark |
Benchmark class
| |
BenchmarkResult |
Benchmark result class
| |
Category |
Class containing specific category attributes
| |
Category IntegrationAttribute |
Integration test category
| |
Category IsolatedIntegrationAttribute |
Isolated integration test category
| |
Category JavaScriptAttribute |
Java script test category
| |
Category UnitAttribute |
Unit test category
| |
CMSAssert |
Custom assertions
| |
FakeClassStructureInfo |
Class structure info for testing purposes
| |
FakeClassStructureInfo T |
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);
}
| |
InfoFake |
Fakes the given info
| |
InfoFake TInfo |
Fakes the given info
| |
InfoProviderFake TInfo, TProvider |
Fakes the given info and provider
| |
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.
| |
IsolatedUnitTests |
Base class for unit test with isolation of the context
| |
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)
| |
UnitTestExtensions |
Extension methods for tests
| |
UnitTests |
Base class for integration tests
|
Interfaces
Interface | Description | |
---|---|---|
IFake |
Interface for the fakes
|