Skip to content

Commit 5f657de

Browse files
authored
Use TestMethod instead of DataTestMethod (#880)
1 parent a9410b2 commit 5f657de

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomFileParserTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ namespace Microsoft.Sbom.Parser;
1212
[TestClass]
1313
public class SbomFileParserTests : SbomParserTestsBase
1414
{
15-
[DataTestMethod]
15+
[TestMethod]
1616
[DataRow(SbomFullDocWithFilesStrings.SbomFileWithMissingNameJsonString)]
1717
[DataRow(SbomFullDocWithFilesStrings.SbomFileWithMissingSpdxIdJsonString)]
18-
[TestMethod]
1918
public void MissingPropertiesTest_Throws(string json)
2019
{
2120
var bytes = Encoding.UTF8.GetBytes(json);

test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomMetadataParserTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ public void StreamEmptyTestReturnsNull()
120120
Assert.ThrowsException<EndOfStreamException>(() => new SPDXParser(stream));
121121
}
122122

123-
[DataTestMethod]
123+
[TestMethod]
124124
[DataRow(SbomFullDocWithMetadataJsonStrings.MalformedJsonEmptyObject)]
125125
[DataRow(SbomFullDocWithMetadataJsonStrings.MalformedJsonEmptyArray)]
126-
[TestMethod]
127126
public void MalformedJsonTest_Throws(string json)
128127
{
129128
var bytes = Encoding.UTF8.GetBytes(json);

0 commit comments

Comments
 (0)