다음을 통해 공유


TestMethodAttribute.Execute Method

Definition

Executes a test method.

public:
 virtual cli::array <Microsoft::VisualStudio::TestTools::UnitTesting::TestResult ^> ^ Execute(Microsoft::VisualStudio::TestTools::UnitTesting::ITestMethod ^ testMethod);
public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[] Execute (Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod testMethod);
abstract member Execute : Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod -> Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]
override this.Execute : Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod -> Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]
Public Overridable Function Execute (testMethod As ITestMethod) As TestResult()

Remarks

Extensions can override this method to customize running a TestMethod.

Applies to