다음을 통해 공유


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 with get
function get Instance () : Object

Property Value

Type: Object
The instance of test class. Defined only in test methods.

Remarks

This property is defined only in Test methods.

.NET Framework Security

See Also

Reference

TestExecutionEventArgs Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace