Following code is considering the type name used as string also as dependency.
Types.InAssembly(Assembly.LoadFrom(fromAssembly))
.ShouldNot()
.HaveDependencyOnAny(typesInOtherAssemblyAsStrings)
.GetResult();
For example, one of the types in "typesInOtherAssemblyAsStrings" is "a.b.cde". A string constant in "fromAssembly" is:
private const string s_TypeNameAsString = "a.b.cde"
Is there a way to exclude checking for such logical dependencies and check only explicit dependencies?