Skip to content

Commit f9bb6e4

Browse files
committed
Update docs/core/testing/unit-testing-mstest-writing-tests.md
1 parent 76d312a commit f9bb6e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/core/testing/unit-testing-mstest-writing-tests.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ public class MyTestClass
5151

5252
The [TestMethod](<xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute>) attribute is used inside a `TestClass` to define the actual test method to run.
5353

54-
The method should be an instance method defined as `public void` or `public Task` (optionally `async`) and be parameterless.
54+
The method should be an instance `public` method defined as `void`, `Task`, or `ValueTask` (starting with MSTest v3.3). It can optionally be `async` but should not be `async void`.
55+
56+
The method should have zero parameters, unless it is used with `[DataRow]`, `[DynamicData]` or similar attribute that provides test case data to the test method.
5557

5658
**Example**
5759

0 commit comments

Comments
 (0)