The Sandbox type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Sandbox |
Creates a root sandbox.
|
Methods
| Name | Description | |
|---|---|---|
| Abort |
Aborts all actions in progress within this context.
| |
| CreateChild |
Creates a child sandbox.
| |
| Dispose |
Disposes the sandbox.
| |
| Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Protect |
Runs an action inside of a protected context wherein it cannot receive
a thread abort from this Sandbox.
| |
| Run |
Runs a test action.
| |
| StartTimer |
Uses a specified timeout for all actions run within a block of code.
When the timeout expires, the sandbox will be aborted.
| |
| ToString |
Returns a String that represents the current Object.
(Inherited from Object.) |
Extension Methods
| Name | Description | |
|---|---|---|
| Format | Overloaded. |
Properties
| Name | Description | |
|---|---|---|
| AbortMessage |
Gets a message that will be logged when the sandbox is aborted, or null if none.
| |
| AbortOutcome |
Returns the TestOutcome passed to Abort(TestOutcome, String),
or null if Abort(TestOutcome, String) has not been called.
| |
| WasAborted |
Returns true if Abort(TestOutcome, String) was called.
|
Events
| Name | Description | |
|---|---|---|
| Aborted |
An event that is dispatched when Abort(TestOutcome, String) is called.
|
