TestClassAttribute.GetTestMethodAttribute(TestMethodAttribute) Method

Definition

Gets a test method attribute that enables running this test.

public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute GetTestMethodAttribute (Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute testMethodAttribute);
abstract member GetTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute -> Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
override this.GetTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute -> Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute

Parameters

testMethodAttribute
TestMethodAttribute

The test method attribute instance defined on this method.

Returns

The TestMethodAttribute to be used to run this test.

Remarks

Extensions can override this method to customize how all methods in a class are run.

Applies to