TestContext.TestName Property
Visual Studio 2012
Gets the test name.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Exception | Condition |
|---|---|
| InvalidCastException | An invalid value type is associated with the TestName property of the test context. |
- 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.