diff --git a/src/Microsoft.ComponentDetection.Detectors/uv/UvLockComponentDetector.cs b/src/Microsoft.ComponentDetection.Detectors/uv/UvLockComponentDetector.cs index d111e8487..eef4a9a97 100644 --- a/src/Microsoft.ComponentDetection.Detectors/uv/UvLockComponentDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/uv/UvLockComponentDetector.cs @@ -12,7 +12,7 @@ namespace Microsoft.ComponentDetection.Detectors.Uv using Microsoft.ComponentDetection.Contracts.TypedComponent; using Microsoft.Extensions.Logging; - public class UvLockComponentDetector : FileComponentDetector, IDefaultOffComponentDetector + public class UvLockComponentDetector : FileComponentDetector, IExperimentalDetector { public UvLockComponentDetector( IComponentStreamEnumerableFactory componentStreamEnumerableFactory, diff --git a/test/Microsoft.ComponentDetection.Detectors.Tests/ComponentDetectorTests.cs b/test/Microsoft.ComponentDetection.Detectors.Tests/ComponentDetectorTests.cs index ffe405ba8..7543d7e46 100644 --- a/test/Microsoft.ComponentDetection.Detectors.Tests/ComponentDetectorTests.cs +++ b/test/Microsoft.ComponentDetection.Detectors.Tests/ComponentDetectorTests.cs @@ -62,4 +62,13 @@ public void AllDetectorsHaveUniqueSupportedComponentTypes() detector.SupportedComponentTypes.Should().OnlyHaveUniqueItems($"because {detector.Id} should have unique supported component types"); } } + + [TestMethod] + public void UvLockComponentDetector_ImplementsIExperimentalDetector() + { + var uvLockDetector = this.detectors.SingleOrDefault(d => d.Id == "UvLock"); + + uvLockDetector.Should().NotBeNull("because UvLockComponentDetector should be registered"); + uvLockDetector.Should().BeAssignableTo("because UvLockComponentDetector should implement IExperimentalDetector"); + } }