Tests if the instance depends on another component.
- Component
- Specify a component to do the dependency check.
The method tests if there is a dependency between the instance and the specified component. The method can also be used to proactively test for potential cyclic dependencies.