TestMethodAttribute.Execute(ITestMethod) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes a test method.
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()
Parameters
- testMethod
- ITestMethod
The test method to execute.
Returns
Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]
An array of TestResult objects that represent the outcome(s) of the test.
Remarks
Extensions can override this method to customize running a TestMethod.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.