-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch DataTestMethod to TestMethod #849
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #849 +/- ##
=======================================
Coverage 46.47% 46.47%
=======================================
Files 355 355
Lines 14151 14151
Branches 1163 1163
=======================================
Hits 6577 6577
Misses 7026 7026
Partials 548 548 ☔ View full report in Codecov by Sentry. |
@@ -100,7 +100,6 @@ public void MissingPropertiesTest_ThrowsSHA256() | |||
Assert.ThrowsException<ParserException>(() => result.Files.Select(f => f.ToSbomFile()).ToList()); | |||
} | |||
|
|||
[DataTestMethod] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, can you please put the [TestMethod]
attribute before the DataRow
attributes for the tests in this file?
@@ -40,7 +40,6 @@ public void StreamEmptyTestReturnsNull() | |||
var result = this.Parse(parser); | |||
} | |||
|
|||
[DataTestMethod] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, can you please put the [TestMethod]
attribute before the DataRow
attributes for the tests in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @Youssef1313! I've requested a minor change just to follow consistent formatting in the test layout
DataTestMethodAttribute is functionally the same as TestMethodAttribute and they are interchangeable. Using DataTestMethodAttribute is no longer recommended and may be dropped in MSTest v4.