Skip to content

Latest commit

 

History

History
1383 lines (1351 loc) · 44.7 KB

File metadata and controls

1383 lines (1351 loc) · 44.7 KB

Types

Predicate

PredicateList

Condition

ConditionList

TestResult

IType

IAssembly

Options

Types

Types.FromFile

Types Types.FromFile(string fileName, IEnumerable<string> searchDirectories = null)

Creates a list of all the types in a particular module file.

Types.FromPath

Types Types.FromPath(string path, IEnumerable<string> searchDirectories = null)

Creates a list of all the types found on a particular path.

Types.GetTypes

IEnumerable<IType> Types.GetTypes(Options options = null)

Returns the list of objects describing the types in this list.

Types.InAssemblies

Types Types.InAssemblies(IEnumerable<Assembly> assemblies, IEnumerable<string> searchDirectories = null, bool loadReferencedAssemblies = false)

Creates a list of types based on a list of assemblies.

Types.InAssembly

Types Types.InAssembly(Assembly assembly, IEnumerable<string> searchDirectories = null, bool loadReferencedAssemblies = false)

Creates a list of types based on a particular assembly.

Types.InCurrentDomain

Types Types.InCurrentDomain()

Creates a list of types based on all the assemblies in the current AppDomain

Types.Should

Condition Types.Should()

Applies a set of conditions to the list of types.

Types.ShouldNot

Condition Types.ShouldNot()

Applies a negative set of conditions to the list of types.

Types.Slice

SlicePredicate Types.Slice()

Allows dividing types into groups, also called slices.

Types.That

Predicate Types.That()

Allows a list of types to be applied to one or more filters.

Predicate

Predicate.AreAbstract

PredicateList Predicate.AreAbstract()

Selects types that are marked as abstract.

Predicate.AreClasses

PredicateList Predicate.AreClasses()

Selects types that are classes.

Predicate.AreDelegates

PredicateList Predicate.AreDelegates()

Selects types that are delegates.

Predicate.AreEnums

PredicateList Predicate.AreEnums()

Selects types that are enums.

Predicate.AreGeneric

PredicateList Predicate.AreGeneric()

Selects types that have generic parameters.

Predicate.AreImmutable

PredicateList Predicate.AreImmutable()

Selects types that are immutable, and their state cannot be changed after creation. (shallow immutability). Stronger constraint than AreImmutableExternally()

Predicate.AreImmutableExternally

PredicateList Predicate.AreImmutableExternally()

Selects types that are immutable from the outside of the given type. (shallow immutability). Weaker constraint than AreImmutable()

Predicate.AreInheritedByAnyType

PredicateList Predicate.AreInheritedByAnyType()

Selects types that are inherited by any type

Predicate.AreInterfaces

PredicateList Predicate.AreInterfaces()

Selects types that are interfaces.

Predicate.AreInternal

PredicateList Predicate.AreInternal()

Selects types that are declared as internal.

Predicate.AreMutable

PredicateList Predicate.AreMutable()

Selects types that are mutable.

Predicate.AreNested

PredicateList Predicate.AreNested()

Selects types that are nested.

Predicate.AreNotAbstract

PredicateList Predicate.AreNotAbstract()

Selects types that are not marked as abstract.

Predicate.AreNotClasses

PredicateList Predicate.AreNotClasses()

Selects types that are not classes.

Predicate.AreNotDelegates

PredicateList Predicate.AreNotDelegates()

Selects types that are not delegates.

Predicate.AreNotEnums

PredicateList Predicate.AreNotEnums()

Selects types that are not enums.

Predicate.AreNotGeneric

PredicateList Predicate.AreNotGeneric()

Selects types that do not have generic parameters.

Predicate.AreNotInheritedByAnyType

PredicateList Predicate.AreNotInheritedByAnyType()

Selects types that are not inherited by any type

Predicate.AreNotInterfaces

PredicateList Predicate.AreNotInterfaces()

Selects types that are not interfaces.

Predicate.AreNotInternal

PredicateList Predicate.AreNotInternal()

Selects types that are not declared as internal.

Predicate.AreNotNested

PredicateList Predicate.AreNotNested()

Selects types that are not nested.

Predicate.AreNotOfType

PredicateList Predicate.AreNotOfType(params Type[] type)

Selects types that are not exactly of given type. (inheritance is not considered)

Predicate.AreNotPrivate

PredicateList Predicate.AreNotPrivate()

Selects types that are not declared as private.

Predicate.AreNotPrivateProtected

PredicateList Predicate.AreNotPrivateProtected()

Selects types that are not declared as private protected.

Predicate.AreNotProtected

PredicateList Predicate.AreNotProtected()

Selects types that are not declared as protected.

Predicate.AreNotProtectedInternal

PredicateList Predicate.AreNotProtectedInternal()

Selects types that are not declared as protected internal.

Predicate.AreNotPublic

PredicateList Predicate.AreNotPublic()

Selects types that do not have public scope.

Predicate.AreNotSealed

PredicateList Predicate.AreNotSealed()

Selects types according that are not marked as sealed.

Predicate.AreNotStatic

PredicateList Predicate.AreNotStatic()

Selects types that are not static.

Predicate.AreNotStructures

PredicateList Predicate.AreNotStructures()

Selects types that are not structures.

Predicate.AreNotUsedByAny

PredicateList Predicate.AreNotUsedByAny(params string[] users)

Selects types that are not used by any of the supplied types.

Predicate.AreOfType

PredicateList Predicate.AreOfType(params Type[] type)

Selects types that are exactly of given type. (inheritance is not considered)

Predicate.ArePrivate

PredicateList Predicate.ArePrivate()

Selects types that are declared as private.

Predicate.ArePrivateProtected

PredicateList Predicate.ArePrivateProtected()

Selects types that are declared as private protected.

Predicate.AreProtected

PredicateList Predicate.AreProtected()

Selects types that are declared as protected.

Predicate.AreProtectedInternal

PredicateList Predicate.AreProtectedInternal()

Selects types that are declared as protected internal.

Predicate.ArePublic

PredicateList Predicate.ArePublic()

Selects types that have public scope.

Predicate.AreSealed

PredicateList Predicate.AreSealed()

Selects types according that are marked as sealed.

Predicate.AreStateless

PredicateList Predicate.AreStateless()

Selects types that are stateless, they do not have instance state`

Predicate.AreStatic

PredicateList Predicate.AreStatic()

Selects types that are static.

Predicate.AreStaticless

PredicateList Predicate.AreStaticless()

Selects types that are staticless, they do not have static state

Predicate.AreStructures

PredicateList Predicate.AreStructures()

Selects types that are structures.

Predicate.AreUsedByAny

PredicateList Predicate.AreUsedByAny(params string[] users)

Selects types that are used by any of the supplied types.

Predicate.DoNotHaveCustomAttribute

PredicateList Predicate.DoNotHaveCustomAttribute(Type attribute)

Selects types that are not decorated with a specific custom attribute.

Predicate.DoNotHaveCustomAttribute

PredicateList Predicate.DoNotHaveCustomAttribute<T>()

Selects types that are not decorated with a specific custom attribute.

Predicate.DoNotHaveCustomAttributeOrInherit

PredicateList Predicate.DoNotHaveCustomAttributeOrInherit(Type attribute)

Selects types that are not decorated with a specific custom attribute or derived one.

Predicate.DoNotHaveCustomAttributeOrInherit

PredicateList Predicate.DoNotHaveCustomAttributeOrInherit<T>()

Selects types that are not decorated with a specific custom attribute or derived one.

Predicate.DoNotHaveDependencyOnAll

PredicateList Predicate.DoNotHaveDependencyOnAll(params string[] dependencies)

Selects types that do not have a dependency on all of the supplied types.

Predicate.DoNotHaveDependencyOnAny

PredicateList Predicate.DoNotHaveDependencyOnAny(params string[] dependencies)

Selects types that do not have a dependency on any of the supplied types.

Predicate.DoNotHaveName

PredicateList Predicate.DoNotHaveName(params string[] name)

Selects types that do not have a particular name.

Predicate.DoNotHaveNameEndingWith

PredicateList Predicate.DoNotHaveNameEndingWith(params string[] end)

Selects types whose names do not end with the specified text.

Predicate.DoNotHaveNameMatching

PredicateList Predicate.DoNotHaveNameMatching(string pattern)

Selects types according to a regular expression that does not match their name.

Predicate.DoNotHaveNameStartingWith

PredicateList Predicate.DoNotHaveNameStartingWith(params string[] start)

Selects types whose names do not start with the specified text.

Predicate.DoNotHaveParameterlessConstructor

PredicateList Predicate.DoNotHaveParameterlessConstructor()

Selects types that do not have any instance parameterless constructors.

Predicate.DoNotHavePublicConstructor

PredicateList Predicate.DoNotHavePublicConstructor()

Selects types that do not have any instance public constructors.

Predicate.DoNotImplementInterface

PredicateList Predicate.DoNotImplementInterface(Type interfaceType)

Selects types that do not implement a particular interface.

Predicate.DoNotImplementInterface

PredicateList Predicate.DoNotImplementInterface<T>()

Selects types that do not implement a particular interface.

Predicate.DoNotInherit

PredicateList Predicate.DoNotInherit(Type type)

Selects types that do not inherit a particular type.

Predicate.DoNotInherit

PredicateList Predicate.DoNotInherit<T>()

Selects types that do not inherit a particular type.

Predicate.DoNotResideInNamespace

PredicateList Predicate.DoNotResideInNamespace(string name)

Selects types that do not reside in a particular namespace.

Predicate.DoNotResideInNamespaceContaining

PredicateList Predicate.DoNotResideInNamespaceContaining(string name)

Selects types whose namespaces contain a particular name part.

Predicate.DoNotResideInNamespaceEndingWith

PredicateList Predicate.DoNotResideInNamespaceEndingWith(string name)

Selects types whose namespaces end with a particular name part.

Predicate.DoNotResideInNamespaceMatching

PredicateList Predicate.DoNotResideInNamespaceMatching(string pattern)

Selects types whose namespaces do not match a regular expression.

Predicate.HaveCustomAttribute

PredicateList Predicate.HaveCustomAttribute(Type attribute)

Selects types that are decorated with a specific custom attribute.

Predicate.HaveCustomAttribute

PredicateList Predicate.HaveCustomAttribute<T>()

Selects types that are decorated with a specific custom attribute.

Predicate.HaveCustomAttributeOrInherit

PredicateList Predicate.HaveCustomAttributeOrInherit(Type attribute)

Selects types that are decorated with a specific custom attribute or derived one.

Predicate.HaveCustomAttributeOrInherit

PredicateList Predicate.HaveCustomAttributeOrInherit<T>()

Selects types that are decorated with a specific custom attribute or derived one.

Predicate.HaveDependencyOnAll

PredicateList Predicate.HaveDependencyOnAll(params string[] dependencies)

Selects types that have a dependency on all of the supplied types.

Predicate.HaveDependencyOnAny

PredicateList Predicate.HaveDependencyOnAny(params string[] dependencies)

Selects types that have a dependency on any of the supplied types.

Predicate.HaveDependencyOtherThan

PredicateList Predicate.HaveDependencyOtherThan(params string[] dependencies)

Selects types that have a dependency other than any of the supplied dependencies.

Predicate.HaveName

PredicateList Predicate.HaveName(params string[] name)

Selects types that have a specific name.

Predicate.HaveNameEndingWith

PredicateList Predicate.HaveNameEndingWith(params string[] end)

Selects types whose names end with the specified text.

Predicate.HaveNameMatching

PredicateList Predicate.HaveNameMatching(string pattern)

Selects types according to a regular expression matching their name.

Predicate.HaveNameStartingWith

PredicateList Predicate.HaveNameStartingWith(params string[] start)

Selects types whose names start with the specified text.

Predicate.HaveNumberOfLinesOfCodeGreaterThan

PredicateList Predicate.HaveNumberOfLinesOfCodeGreaterThan(int number)

Selects types that have more logical lines of code than a given number

Predicate.HaveNumberOfLinesOfCodeLowerThan

PredicateList Predicate.HaveNumberOfLinesOfCodeLowerThan(int number)

Selects types that have fewer logical lines of code than a given number

Predicate.HaveParameterlessConstructor

PredicateList Predicate.HaveParameterlessConstructor()

Selects types that have at least one instance parameterless constructor.

Predicate.HavePublicConstructor

PredicateList Predicate.HavePublicConstructor()

Selects types that have at least one instance public constructor.

Predicate.HaveSomeNonNullableMembers

PredicateList Predicate.HaveSomeNonNullableMembers()

Selects types that have some non-nullable members.

Predicate.ImplementInterface

PredicateList Predicate.ImplementInterface(Type interfaceType)

Selects types that implement a particular interface.

Predicate.ImplementInterface

PredicateList Predicate.ImplementInterface<T>()

Selects types that implement a particular interface.

Predicate.Inherit

PredicateList Predicate.Inherit(Type type)

Selects types that inherit a particular type.

Predicate.Inherit

PredicateList Predicate.Inherit<T>()

Selects types that inherit a particular type.

Predicate.MeetCustomRule

PredicateList Predicate.MeetCustomRule(ICustomRule rule)

Selects types that meet a custom rule.

Predicate.MeetCustomRule

PredicateList Predicate.MeetCustomRule(Func<TypeDefinition, bool> rule)

Selects types that meet a custom rule.

Predicate.MeetCustomRule

PredicateList Predicate.MeetCustomRule(ICustomRule2 rule)

Selects types that meet a custom rule.

Predicate.MeetCustomRule

PredicateList Predicate.MeetCustomRule(Func<TypeDefinition, CustomRuleResult> rule)

Selects types that meet a custom rule.

Predicate.OnlyHaveDependencyOn

PredicateList Predicate.OnlyHaveDependencyOn(params string[] dependencies)

Selects types that have a dependency on any of the supplied types and cannot have any other dependency.

Predicate.OnlyHaveNonNullableMembers

PredicateList Predicate.OnlyHaveNonNullableMembers()

Selects types that have only non-nullable members.

Predicate.OnlyHaveNullableMembers

PredicateList Predicate.OnlyHaveNullableMembers()

Selects types that have only nullable members.

Predicate.ResideInNamespace

PredicateList Predicate.ResideInNamespace(string name)

Selects types that reside in a particular namespace.

Predicate.ResideInNamespaceContaining

PredicateList Predicate.ResideInNamespaceContaining(string name)

Selects types whose namespaces contain a particular name part.

Predicate.ResideInNamespaceEndingWith

PredicateList Predicate.ResideInNamespaceEndingWith(string name)

Selects types whose namespaces end with a particular name part.

Predicate.ResideInNamespaceMatching

PredicateList Predicate.ResideInNamespaceMatching(string pattern)

Selects types whose namespaces match a regular expression.

PredicateList

PredicateList.And

Predicate PredicateList.And()

Specifies that any subsequent predicates should be treated as "and" conditions.

PredicateList.GetTypes

IEnumerable<IType> PredicateList.GetTypes(Options options = null)

Returns the types returned by these predicates.

PredicateList.Or

Predicate PredicateList.Or()

Specifies that any subsequent predicates should be treated as part of an "or" condition.

PredicateList.Should

Condition PredicateList.Should()

Links a predicate defining a set of classes to a condition that tests them.

PredicateList.ShouldNot

Condition PredicateList.ShouldNot()

Links a predicate defining a set of classes to a condition that tests them.

PredicateList.Slice

SlicePredicate PredicateList.Slice()

Allows dividing types into groups, also called slices.

Condition

Condition.BeAbstract

ConditionList Condition.BeAbstract()

Selects types that are marked as abstract.

Condition.BeClasses

ConditionList Condition.BeClasses()

Selects types that are classes.

Condition.BeDelegates

ConditionList Condition.BeDelegates()

Selects types that are delegates.

Condition.BeEnums

ConditionList Condition.BeEnums()

Selects types that are enums.

Condition.BeGeneric

ConditionList Condition.BeGeneric()

Selects types that have generic parameters.

Condition.BeImmutable

ConditionList Condition.BeImmutable()

Selects types that are immutable, and their state cannot be changed after creation. (shallow immutability). Stronger constraint than AreImmutableExternally()

Condition.BeImmutableExternally

ConditionList Condition.BeImmutableExternally()

Selects types that are immutable from the outside of the given type. (shallow immutability). Weaker constraint than AreImmutable()

Condition.BeInterfaces

ConditionList Condition.BeInterfaces()

Selects types that are interfaces.

Condition.BeInternal

ConditionList Condition.BeInternal()

Selects types that are internal.

Condition.BeMutable

ConditionList Condition.BeMutable()

Selects types that are mutable.

Condition.BeNested

ConditionList Condition.BeNested()

Selects types that are nested.

Condition.BeOfType

ConditionList Condition.BeOfType(params Type[] type)

Selects types that are exactly of given type. (inheritance is not considered)

Condition.BePrivate

ConditionList Condition.BePrivate()

Selects types that are private.

Condition.BePrivateProtected

ConditionList Condition.BePrivateProtected()

Selects types that are private protected.

Condition.BeProtected

ConditionList Condition.BeProtected()

Selects types that are protected.

Condition.BeProtectedInternal

ConditionList Condition.BeProtectedInternal()

Selects types that are protected internal.

Condition.BePublic

ConditionList Condition.BePublic()

Selects types that are have public scope.

Condition.BeSealed

ConditionList Condition.BeSealed()

Selects types according that are marked as sealed.

Condition.BeStateless

ConditionList Condition.BeStateless()

Selects types that are stateless, they do not have instance state

Condition.BeStatic

ConditionList Condition.BeStatic()

Selects types that are static.

Condition.BeStaticless

ConditionList Condition.BeStaticless()

Selects types that are staticless, they do not have static state

Condition.BeStructures

ConditionList Condition.BeStructures()

Selects types that are structures.

Condition.BeUsedByAny

ConditionList Condition.BeUsedByAny(params string[] users)

Selects types that are used by any of the supplied types.

Condition.HaveCustomAttribute

ConditionList Condition.HaveCustomAttribute(Type attribute)

Selects types are decorated with a specific custom attribut.

Condition.HaveCustomAttribute

ConditionList Condition.HaveCustomAttribute<T>()

Selects types are decorated with a specific custom attribut.

Condition.HaveCustomAttributeOrInherit

ConditionList Condition.HaveCustomAttributeOrInherit(Type attribute)

Selects types that are decorated with a specific custom attribute or derived one.

Condition.HaveCustomAttributeOrInherit

ConditionList Condition.HaveCustomAttributeOrInherit<T>()

Selects types that are decorated with a specific custom attribute or derived one.

Condition.HaveDependencyOnAll

ConditionList Condition.HaveDependencyOnAll(params string[] dependencies)

Selects types that have a dependency on all of the particular types.

Condition.HaveDependencyOnAny

ConditionList Condition.HaveDependencyOnAny(params string[] dependencies)

Selects types that have a dependency on any of the supplied types.

Condition.HaveDependencyOtherThan

ConditionList Condition.HaveDependencyOtherThan(params string[] dependencies)

Selects types that have a dependency other than any of the given dependencies.

Condition.HaveMatchingTypeWithName

ConditionList Condition.HaveMatchingTypeWithName(Func<TypeDefinition, string> getMatchingTypeName)

For each type, check if a matching type with the given name exists.

Condition.HaveName

ConditionList Condition.HaveName(string name)

Selects types that have a specific name.

Condition.HaveNameEndingWith

ConditionList Condition.HaveNameEndingWith(string end)

Selects types whose names do not end with the specified text.

Condition.HaveNameMatching

ConditionList Condition.HaveNameMatching(string pattern)

Selects types according to a regular expression matching their name.

Condition.HaveNameStartingWith

ConditionList Condition.HaveNameStartingWith(string start)

Selects types whose names start with the specified text.

Condition.HaveNumberOfLinesOfCodeGreaterThan

ConditionList Condition.HaveNumberOfLinesOfCodeGreaterThan(int number)

Selects types that have more logical lines of code than a given number

Condition.HaveNumberOfLinesOfCodeLowerThan

ConditionList Condition.HaveNumberOfLinesOfCodeLowerThan(int number)

Selects types that have fewer logical lines of code than a given number

Condition.HaveParameterlessConstructor

ConditionList Condition.HaveParameterlessConstructor()

Selects types that have at least one instance parameterless constructor.

Condition.HavePublicConstructor

ConditionList Condition.HavePublicConstructor()

Selects types that have at least one instance public constructor.

Condition.HaveSomeNonNullableMembers

ConditionList Condition.HaveSomeNonNullableMembers()

Selects types according to whether they have nullable members.

Condition.HaveSourceFileNameMatchingName

ConditionList Condition.HaveSourceFileNameMatchingName()

For each type, check if the name is consistent with its source file name.

Condition.HaveSourceFilePathMatchingNamespace

ConditionList Condition.HaveSourceFilePathMatchingNamespace()

For each type, check if the namespace is consistent with its source file path.

Condition.ImplementInterface

ConditionList Condition.ImplementInterface(Type interfaceType)

Selects types that implement a particular interface.

Condition.ImplementInterface

ConditionList Condition.ImplementInterface<T>()

Selects types that implement a particular interface.

Condition.Inherit

ConditionList Condition.Inherit(Type type)

Selects types that inherit a particular type.

Condition.Inherit

ConditionList Condition.Inherit<T>()

Selects types that inherit a particular type.

Condition.MeetCustomRule

ConditionList Condition.MeetCustomRule(ICustomRule rule)

Selects types that meet a custom rule.

Condition.MeetCustomRule

ConditionList Condition.MeetCustomRule(Func<TypeDefinition, bool> rule)

Selects types that meet a custom rule.

Condition.MeetCustomRule

ConditionList Condition.MeetCustomRule(ICustomRule2 rule)

Selects types that meet a custom rule.

Condition.MeetCustomRule

ConditionList Condition.MeetCustomRule(Func<TypeDefinition, CustomRuleResult> rule)

Selects types that meet a custom rule.

Condition.NotBeAbstract

ConditionList Condition.NotBeAbstract()

Selects types that are not marked as abstract.

Condition.NotBeClasses

ConditionList Condition.NotBeClasses()

Selects types that are not classes.

Condition.NotBeDelegates

ConditionList Condition.NotBeDelegates()

Selects types that are not delegates.

Condition.NotBeEnums

ConditionList Condition.NotBeEnums()

Selects types that are not enums.

Condition.NotBeGeneric

ConditionList Condition.NotBeGeneric()

Selects types that do not have generic parameters.

Condition.NotBeInterfaces

ConditionList Condition.NotBeInterfaces()

Selects types that are not interfaces.

Condition.NotBeInternal

ConditionList Condition.NotBeInternal()

Selects types that are not internal.

Condition.NotBeNested

ConditionList Condition.NotBeNested()

Selects types that are not nested.

Condition.NotBeOfType

ConditionList Condition.NotBeOfType(params Type[] type)

Selects types that are not exactly of given type. (inheritance is not considered)

Condition.NotBePrivate

ConditionList Condition.NotBePrivate()

Selects types that are not private.

Condition.NotBePrivateProtected

ConditionList Condition.NotBePrivateProtected()

Selects types that are not private protected.

Condition.NotBeProtected

ConditionList Condition.NotBeProtected()

Selects types that are not protected.

Condition.NotBeProtectedInternal

ConditionList Condition.NotBeProtectedInternal()

Selects types that are not protected internal.

Condition.NotBePublic

ConditionList Condition.NotBePublic()

Selects types that do not have public scope.

Condition.NotBeSealed

ConditionList Condition.NotBeSealed()

Selects types according that are not marked as sealed.

Condition.NotBeStatic

ConditionList Condition.NotBeStatic()

Selects types that are not static.

Condition.NotBeStructures

ConditionList Condition.NotBeStructures()

Selects types that are not structures.

Condition.NotBeUsedByAny

ConditionList Condition.NotBeUsedByAny(params string[] users)

Selects types that are not used by any of the particular types.

Condition.NotHaveCustomAttribute

ConditionList Condition.NotHaveCustomAttribute(Type attribute)

Selects types that are not decorated with a specific custom attribute.

Condition.NotHaveCustomAttribute

ConditionList Condition.NotHaveCustomAttribute<T>()

Selects types that are not decorated with a specific custom attribute.

Condition.NotHaveCustomAttributeOrInherit

ConditionList Condition.NotHaveCustomAttributeOrInherit(Type attribute)

Selects types are not decorated with a specific custom attribute or derived one.

Condition.NotHaveCustomAttributeOrInherit

ConditionList Condition.NotHaveCustomAttributeOrInherit<T>()

Selects types are not decorated with a specific custom attribute or derived one.

Condition.NotHaveDependencyOnAll

ConditionList Condition.NotHaveDependencyOnAll(params string[] dependencies)

Selects types that do not have a dependency on all of the particular types.

Condition.NotHaveDependencyOnAny

ConditionList Condition.NotHaveDependencyOnAny(params string[] dependencies)

Selects types that do not have a dependency on any of the particular types.

Condition.NotHaveName

ConditionList Condition.NotHaveName(string name)

Selects types that do not have a particular name.

Condition.NotHaveNameEndingWith

ConditionList Condition.NotHaveNameEndingWith(string end)

Selects types whose names do not end with the specified text.

Condition.NotHaveNameMatching

ConditionList Condition.NotHaveNameMatching(string pattern)

Selects types according to a regular expression that does not match their name.

Condition.NotHaveNameStartingWith

ConditionList Condition.NotHaveNameStartingWith(string start)

Selects types whose names do not start with the specified text.

Condition.NotHaveParameterlessConstructor

ConditionList Condition.NotHaveParameterlessConstructor()

Selects types that do not have any instance parameterless constructors.

Condition.NotHavePublicConstructor

ConditionList Condition.NotHavePublicConstructor()

Selects types that do not have any instance public constructors.

Condition.NotImplementInterface

ConditionList Condition.NotImplementInterface(Type interfaceType)

Selects types that do not implement a particular interface.

Condition.NotImplementInterface

ConditionList Condition.NotImplementInterface<T>()

Selects types that do not implement a particular interface.

Condition.NotInherit

ConditionList Condition.NotInherit(Type type)

Selects types that do not inherit a particular type.

Condition.NotInherit

ConditionList Condition.NotInherit<T>()

Selects types that do not inherit a particular type.

Condition.NotResideInNamespace

ConditionList Condition.NotResideInNamespace(string name)

Selects types that do not reside in a particular namespace.

Condition.NotResideInNamespaceContaining

ConditionList Condition.NotResideInNamespaceContaining(string name)

Selects types whose namespaces contain a particular name part.

Condition.NotResideInNamespaceEndingWith

ConditionList Condition.NotResideInNamespaceEndingWith(string name)

Selects types whose namespaces end with a particular name part.

Condition.NotResideInNamespaceMatching

ConditionList Condition.NotResideInNamespaceMatching(string pattern)

Selects types that do not reside in a namespace matching a regular expression.

Condition.OnlyHaveDependencyOn

ConditionList Condition.OnlyHaveDependencyOn(params string[] dependencies)

Selects types that have a dependency on any of the supplied types and cannot have any other dependency.

Condition.OnlyHaveNonNullableMembers

ConditionList Condition.OnlyHaveNonNullableMembers()

Selects types according to whether they have only non-nullable members.

Condition.OnlyHaveNullableMembers

ConditionList Condition.OnlyHaveNullableMembers()

Selects types according to whether they have nullable members.

Condition.ResideInNamespace

ConditionList Condition.ResideInNamespace(string name)

Selects types that reside in a particular namespace.

Condition.ResideInNamespaceContaining

ConditionList Condition.ResideInNamespaceContaining(string name)

Selects types whose namespaces contain a particular name part.

Condition.ResideInNamespaceEndingWith

ConditionList Condition.ResideInNamespaceEndingWith(string name)

Selects types whose namespaces end with a particular name part.

Condition.ResideInNamespaceMatching

ConditionList Condition.ResideInNamespaceMatching(string pattern)

Selects types that reside in a namespace matching a regular expression.

ConditionList

ConditionList.And

Condition ConditionList.And()

Specifies that any subsequent condition should be treated as an "and" condition.

ConditionList.GetResult

TestResult ConditionList.GetResult(Options options = null)

Returns an indication of whether all the selected types satisfy the conditions.

ConditionList.GetTypes

IEnumerable<IType> ConditionList.GetTypes(Options options = null)

Returns the list of types that satisfy the conditions.

ConditionList.Or

Condition ConditionList.Or()

Specifies that any subsequent conditions should be treated as part of an "or" condition.

TestResult

TestResult.FailingTypes

FailingTypes

Gets a list of the types that failed the test.

TestResult.IsSuccessful

IsSuccessful

Gets a flag indicating the success or failure of the test.

TestResult.LoadedAssemblies

LoadedAssemblies

Gets a list of all the assemblies that were loded by .

TestResult.LoadedTypes

LoadedTypes

Gets a list of all the types that were loded by .

TestResult.SelectedTypesForTesting

SelectedTypesForTesting

Gets a list of the types that passed filtering by predicates and were used as input to conditions.

IType

IType.Explanation

Explanation

It contains explanation why this Type has failed dependecy search.

IType.FullName

FullName

FullName of the type

IType.Name

Name

Name of the type

IType.ReflectionType

ReflectionType

System.Type

IType.SourceFilePath

SourceFilePath

Path to the source file where type is defined.

IAssembly

IAssembly.FullName

FullName

FullName of the assembly

Options

Options.Comparer

Comparer

Allows to specify how strings will be compared, default: InvariantCultureIgnoreCase

Options.SerachForDependencyInFieldConstant

SerachForDependencyInFieldConstant

Determines if dependency analysis should look for dependency in string field constant, default: false