From f2a7da21da33705350e2701d352c3c3d638817a6 Mon Sep 17 00:00:00 2001 From: Dave Tryon <45672944+DaveTryon@users.noreply.github.com> Date: Fri, 17 Jan 2025 13:28:14 -0800 Subject: [PATCH] Use TestMethod instead of DataTestMethod --- .../Parser/SbomFileParserTests.cs | 3 +-- .../Parser/SbomMetadataParserTests.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomFileParserTests.cs b/test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomFileParserTests.cs index 40d6e0ea..f0185208 100644 --- a/test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomFileParserTests.cs +++ b/test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomFileParserTests.cs @@ -12,10 +12,9 @@ namespace Microsoft.Sbom.Parser; [TestClass] public class SbomFileParserTests : SbomParserTestsBase { - [DataTestMethod] + [TestMethod] [DataRow(SbomFullDocWithFilesStrings.SbomFileWithMissingNameJsonString)] [DataRow(SbomFullDocWithFilesStrings.SbomFileWithMissingSpdxIdJsonString)] - [TestMethod] public void MissingPropertiesTest_Throws(string json) { var bytes = Encoding.UTF8.GetBytes(json); diff --git a/test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomMetadataParserTests.cs b/test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomMetadataParserTests.cs index 2c264632..15f16bac 100644 --- a/test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomMetadataParserTests.cs +++ b/test/Microsoft.Sbom.Parsers.Spdx30SbomParser.Tests/Parser/SbomMetadataParserTests.cs @@ -120,10 +120,9 @@ public void StreamEmptyTestReturnsNull() Assert.ThrowsException(() => new SPDXParser(stream)); } - [DataTestMethod] + [TestMethod] [DataRow(SbomFullDocWithMetadataJsonStrings.MalformedJsonEmptyObject)] [DataRow(SbomFullDocWithMetadataJsonStrings.MalformedJsonEmptyArray)] - [TestMethod] public void MalformedJsonTest_Throws(string json) { var bytes = Encoding.UTF8.GetBytes(json);