Called by the unit testing class.
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
This method first disposes of the existing execution context and privileged context. The method then creates a privileged context to use when the TestCleanupAction is run, if it is defined. Finally, the method disposes of the privileged context.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.