Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the test name.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property TestName As String
public virtual string TestName { get; }
public:
virtual property String^ TestName {
String^ get ();
}
abstract TestName : string
override TestName : string
function get TestName () : String
Property Value
Type: System.String
The test name.
Exceptions
Exception | Condition |
---|---|
InvalidCastException | An invalid value type is associated with the TestName property of the test context. |
.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.
See Also
Reference
Microsoft.VisualStudio.TestTools.UnitTesting Namespace