Skip to content

Commit eddc8b7

Browse files
Update mstest monorepo to 3.11.0 (#1508)
* Update mstest monorepo to 3.11.0 * Remove DataTestMethod attribute --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jamie Magee <[email protected]>
1 parent 7a7cf44 commit eddc8b7

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<PackageVersion Include="MinVer" Version="5.0.0" />
2222
<PackageVersion Include="Moq" Version="4.18.4" />
2323
<PackageVersion Include="morelinq" Version="4.4.0" />
24-
<PackageVersion Include="MSTest.TestFramework" Version="3.6.1" />
25-
<PackageVersion Include="MSTest.Analyzers" Version="3.6.1" />
26-
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.1" />
24+
<PackageVersion Include="MSTest.TestFramework" Version="3.11.0" />
25+
<PackageVersion Include="MSTest.Analyzers" Version="3.11.0" />
26+
<PackageVersion Include="MSTest.TestAdapter" Version="3.11.0" />
2727
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
2828
<PackageVersion Include="Newtonsoft.Json" Version="13.0.4" />
2929
<PackageVersion Include="Newtonsoft.Json.Schema" Version="3.0.16" />

test/Microsoft.ComponentDetection.Detectors.Tests/GoComponentDetectorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ public async Task GoModDetector_GoModFileFound_GoModParserIsExecuted()
875875
/// Verifies that if Go CLI is enabled/available and succeeds, go.sum file is not parsed and vice-versa.
876876
/// </summary>
877877
/// <returns>Task.</returns>
878-
[DataTestMethod]
878+
[TestMethod]
879879
[DataRow(true)]
880880
[DataRow(false)]
881881
public async Task GoDetector_GoSum_GoSumParserExecuted(bool goCliSucceeds)

test/Microsoft.ComponentDetection.Detectors.Tests/VcpkgComponentDetectorTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ public async Task TestInvalidFileAsync()
180180
}
181181

182182
[TestMethod]
183-
[DataTestMethod]
184183
[DataRow("vcpkg_installed\\manifest-info.json", "vcpkg.json")]
185184
[DataRow("vcpkg_installed\\vcpkg\\manifest-info.json", "vcpkg.json")]
186185
[DataRow("bad_location\\manifest-info.json", "vcpkg_installed\\packageLocation\\vcpkg.spdx.json")]

test/Microsoft.ComponentDetection.Orchestrator.Tests/Commands/ScanSettingsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void CanSerialize()
6363
action.Should().NotThrow();
6464
}
6565

66-
[DataTestMethod]
66+
[TestMethod]
6767
[DataRow(-1)]
6868
[DataRow(0)]
6969
public void Validate_FailInvalidMaxThreads(int? input)
@@ -79,7 +79,7 @@ public void Validate_FailInvalidMaxThreads(int? input)
7979
result.Successful.Should().BeFalse();
8080
}
8181

82-
[DataTestMethod]
82+
[TestMethod]
8383
[DataRow(null)]
8484
[DataRow(1)]
8585
[DataRow(99)]

test/Microsoft.ComponentDetection.Orchestrator.Tests/Services/DetectorProcessingServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public async Task ProcessDetectorsAsync_ExperimentalDetectorsThrowingDoesntKillD
294294
experimentalDetectorRecord.DetectedComponentCount.Should().Be(0);
295295
experimentalDetectorRecord.IsExperimental.Should().BeTrue();
296296
experimentalDetectorRecord.ReturnCode.Should().Be((int)ProcessingResultCode.InputError);
297-
experimentalDetectorRecord.ExperimentalInformation.Contains("Simulated experimental failure");
297+
experimentalDetectorRecord.ExperimentalInformation.Should().Contain("Simulated experimental failure");
298298

299299
// We should have all components except the ones that came from our experimental detector
300300
this.GetDiscoveredComponentsFromDetectorProcessingResult(results).Should().HaveCount(records.Sum(x => x.DetectedComponentCount ?? 0));

0 commit comments

Comments
 (0)