Work with Unsupported Unit Testing Frameworks
If the unit testing framework you use is not supported by dotMemory Unit out of the box (see the list of supported frameworks), you can provide support using the
All you need to do is to tell dotMemory Unit where your test method starts and where it ends. This is done by means of two methods:
DotMemoryUnitController.TestEnd(). We recommend that you create an
IDisposable class* that uses these methods and then wrap the code in your tests with the
using statement that creates an instance of this class.
DotMemoryUnitController static class
Allows providing dotMemory Unit with support for any unit testing framework.
Indicates the start of a test.
Indicates the end of a test. Make sure this method is always called (even if a test throws an exception).
Indicates test failure. Call this method when handling an exception in your test. Use
Usage of this method is required only if you use snapshot saving strategies.