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


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