Skip to content

Commit 2d18463

Browse files
committed
not the behavior we want
1 parent dc6aa11 commit 2d18463

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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>();

0 commit comments

Comments
 (0)