Suggest using TestMethodAttribute for parameterized tests (#367)
DataTestMethodAttribute is not recommended anymore - https://learn.microsoft.com/en-us/dotnet/core/testing/mstest-analyzers/mstest0044
This commit is contained in:
parent
2f137cf874
commit
47ef6fd17d
@ -177,7 +177,7 @@ bash
|
|||||||
|
|
||||||
* Class `[TestClass]`, test `[TestMethod]`
|
* Class `[TestClass]`, test `[TestMethod]`
|
||||||
* Setup/teardown: `[TestInitialize]`, `[TestCleanup]`
|
* Setup/teardown: `[TestInitialize]`, `[TestCleanup]`
|
||||||
* Parameterized tests: **use `[DataTestMethod]` + `[DataRow]`**
|
* Parameterized tests: **use `[TestMethod]` + `[DataRow]`**
|
||||||
|
|
||||||
### Assertions
|
### Assertions
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user