Méthode | Description | |
---|---|---|
GetAssemblies ( ) : IList |
Returns a list of unique assemblies from a set of types.
|
|
GetAssembliesFromInstances ( IEnumerable |
Retrieve a list of Reflection.Assembly types from a set of instances and/or types.
|
|
GetAttribute ( ITestMethod method, |
Given a test method and a decorative attribute of interest, retrieves a single Attribute instance. Will throw an exception if multiple attributes exist on the method.
|
|
GetAttribute ( ITestMethod method, |
Given a test method and a decorative attribute of interest, retrieves a single Attribute instance. Will throw an exception if multiple attributes exist on the method.
|
|
GetAttribute ( |
Given a method and a decorative attribute of interest, retrieves a single Attribute instance. Will throw an exception if multiple attributes exist on the method.
|
|
GetAttributes ( ITestMethod method, |
Given a test method, returns the attributes (if any) that are of the decoratingAttribute parameter's type.
|
|
GetAttributes ( |
Given a MethodInfo type, returns the attributes (if any) that are of the decoratingAttribute parameter's type.
|
|
GetAttributes ( |
Given a MethodInfo type, returns the attributes (if any) that are of the decoratingAttribute parameter's type.
|
|
GetMethodsWithAttribute ( |
Return a collection of MethodInfo instances given a type to look through and the attribute of interest.
|
|
GetOneMethodWithAttribute ( |
Retrieve a MethodInfo from a single decorated method inside a type, if any. Throws an Exception if there are > 1 methods that are decorated with the attribute.
|
|
GetTypesWithAttribute ( |
Retrieve all types in an assembly that are decorated with a specific attribute.
|
|
HasAttribute ( ITestMethod method, |
Returns a value indicating whether a method has the attribute.
|
|
HasAttribute ( |
Returns a value indicating whether a method has the attribute.
|
Méthode | Description | |
---|---|---|
GetAttribute ( ICollection |
Given a list of attributes, retrieves a single Attribute instance. Will throw an exception if multiple attributes exist on the method.
|
public static GetAssembliesFromInstances ( IEnumerable | ||
objects | IEnumerable | Set of instances or types. |
Résultat | IList |
public static GetAttribute ( ITestMethod method, |
||
method | ITestMethod | ITestMethod instance. |
decoratingAttribute | /// Attribute type of interest. /// | |
Résultat |
public static GetAttribute ( ITestMethod method, |
||
method | ITestMethod | ITestMethod instance. |
decoratingAttribute | /// Attribute type of interest. /// | |
inherit | bool | A value indicating whether to look for custom /// inherited attributes. |
Résultat |
public static GetAttribute ( |
||
member | MemberInfo instance. | |
decoratingAttribute | /// Attribute type of interest. /// | |
Résultat |
public static GetAttributes ( ITestMethod method, |
||
method | ITestMethod | ITestMethod instance. |
decoratingAttribute | Attribute of interest. | |
inherit | bool | Whether to inherit attributes. |
Résultat | ICollection |
public static GetAttributes ( |
||
member | MemberInfo instance. | |
decoratingAttribute | Attribute of interest. | |
Résultat | ICollection |
public static GetAttributes ( |
||
member | MemberInfo instance. | |
decoratingAttribute | Attribute of interest. | |
inherit | bool | A value indicating whether to look for /// inheriting custom attributes. |
Résultat | ICollection |
public static GetMethodsWithAttribute ( |
||
type | Type to look through for methods. | |
decoratingAttribute | Attribute of interest. | |
Résultat | ICollection |
public static GetOneMethodWithAttribute ( |
||
type | Type of interest. | |
decoratingAttribute | Attribute of interest. | |
Résultat |
public static GetTypesWithAttribute ( |
||
assembly | Assembly to search. | |
decoratingAttribute | /// Instance of the Type of attribute that marks interesting methods. /// | |
Résultat | ICollection |
public static HasAttribute ( ITestMethod method, |
||
method | ITestMethod | ITestMethod instance. |
decoratingAttribute | Attribute of interest. | |
Résultat | bool |
public static HasAttribute ( |
||
member | MemberInfo instance. | |
decoratingAttribute | Attribute of interest. | |
Résultat | bool |