Skip to content

Don't consider type name used as string #147

@rbashoka

Description

@rbashoka

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions