Running a Test in the Sandbox

To ensure that your test does not crash your data or production environment, you can run it in the sandbox. A test running in the sandbox is isolated and cannot harm your system.

Typemock Isolator runs all suggested tests in the sandbox. However, integration tests cannot run in the sandbox.

To run a test in the sandbox:

To the test class that you want to run in the sandbox, add the [SafetyNet] attribute.

For example:

C#

[SafetyNet(typeof(UnderTest), TestMethod, Isolated]