File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed
Microsoft.ComponentDetection.Detectors.Tests
Microsoft.ComponentDetection.Orchestrator.Tests Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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" ) ]
Original file line number Diff line number Diff 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 ) ]
Original file line number Diff line number Diff 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 ) ) ;
You can’t perform that action at this time.
0 commit comments