File tree Expand file tree Collapse file tree
test/Microsoft.ComponentDetection.Orchestrator.Tests/Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,21 +194,6 @@ public void WithRestrictions_ExplicitlyEnabledDefaultOffDetector_WithFilter_Allo
194194 restrictedDetectors . Should ( ) . Contain ( defaultOffDetectorMock . Object ) ;
195195 }
196196
197- [ TestMethod ]
198- public void WithRestrictions_ExplicitlyEnabledDefaultOffDetector_WithFilter_ThrowsIfNotEnabled ( )
199- {
200- var r = new DetectorRestrictions
201- {
202- AllowedDetectorIds = [ "defaultOffDetector" ] ,
203- ExplicitlyEnabledDetectorIds = [ ] ,
204- } ;
205- var detectorMock = this . GenerateDetector ( "defaultOffDetector" ) ;
206- var defaultOffDetectorMock = detectorMock . As < IDefaultOffComponentDetector > ( ) ;
207- this . detectors = this . detectors . Union ( [ defaultOffDetectorMock . Object ] ) . ToArray ( ) ;
208- Action shouldThrow = ( ) => this . serviceUnderTest . ApplyRestrictions ( r , this . detectors ) ;
209- shouldThrow . Should ( ) . Throw < InvalidDetectorFilterException > ( ) ;
210- }
211-
212197 private Mock < IComponentDetector > GenerateDetector ( string detectorName , string [ ] categories = null )
213198 {
214199 var mockDetector = new Mock < IComponentDetector > ( ) ;
You can’t perform that action at this time.
0 commit comments