File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/Microsoft.ComponentDetection.Detectors/uv
test/Microsoft.ComponentDetection.Detectors.Tests Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace Microsoft.ComponentDetection.Detectors.Uv
1212 using Microsoft . ComponentDetection . Contracts . TypedComponent ;
1313 using Microsoft . Extensions . Logging ;
1414
15- public class UvLockComponentDetector : FileComponentDetector , IDefaultOffComponentDetector
15+ public class UvLockComponentDetector : FileComponentDetector , IExperimentalDetector
1616 {
1717 public UvLockComponentDetector (
1818 IComponentStreamEnumerableFactory componentStreamEnumerableFactory ,
Original file line number Diff line number Diff line change @@ -62,4 +62,13 @@ public void AllDetectorsHaveUniqueSupportedComponentTypes()
6262 detector . SupportedComponentTypes . Should ( ) . OnlyHaveUniqueItems ( $ "because { detector . Id } should have unique supported component types") ;
6363 }
6464 }
65+
66+ [ TestMethod ]
67+ public void UvLockComponentDetector_ImplementsIExperimentalDetector ( )
68+ {
69+ var uvLockDetector = this . detectors . SingleOrDefault ( d => d . Id == "UvLock" ) ;
70+
71+ uvLockDetector . Should ( ) . NotBeNull ( "because UvLockComponentDetector should be registered" ) ;
72+ uvLockDetector . Should ( ) . BeAssignableTo < IExperimentalDetector > ( "because UvLockComponentDetector should implement IExperimentalDetector" ) ;
73+ }
6574}
You can’t perform that action at this time.
0 commit comments