Use testable classes

You can use testable classes to mock the behavior of class internal logic.

EXAMPLE: If you a class like the OperationClass.cs in Sitefinity documentation-samples on GitHub, you can implement a testable class for the OperationClass and override the IsReadOnlyEnabled method. For more information, see TestableOperationClass.cs in the same repository.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Use method delegates