TestName Property
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

TestContext.TestName Property

Gets the test name.

Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in microsoft.visualstudio.qualitytools.unittestframework.dll)

public virtual string TestName { get; }
/** @property */
public String get_TestName ()

public function get TestName () : String

Property Value

The test name.

Exception typeCondition

InvalidCastException

An invalid value type is associated with the TestName property of the test context.

Show:
© 2016 Microsoft