TestExecutionEventArgs.Instance Property
Gets the instance of test class. Defined only in test methods.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public ReadOnly Property Instance As Object
public Object Instance { get; }
public:
property Object^ Instance {
Object^ get ();
}
member Instance : Object
function get Instance () : Object
Property Value
Type: System.Object
The instance of test class. Defined only in test methods.
Remarks
This property is defined only in Test methods.
.NET Framework Security
- 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.