Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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. |
Результат | IList |
public static GetAttribute ( ITestMethod method, |
||
method | ITestMethod | ITestMethod instance. |
decoratingAttribute | /// Attribute type of interest. /// | |
Результат |
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. |
Результат |
public static GetAttribute ( |
||
member | MemberInfo instance. | |
decoratingAttribute | /// Attribute type of interest. /// | |
Результат |
public static GetAttributes ( ITestMethod method, |
||
method | ITestMethod | ITestMethod instance. |
decoratingAttribute | Attribute of interest. | |
inherit | bool | Whether to inherit attributes. |
Результат | ICollection |
public static GetAttributes ( |
||
member | MemberInfo instance. | |
decoratingAttribute | Attribute of interest. | |
Результат | ICollection |
public static GetAttributes ( |
||
member | MemberInfo instance. | |
decoratingAttribute | Attribute of interest. | |
inherit | bool | A value indicating whether to look for /// inheriting custom attributes. |
Результат | ICollection |
public static GetMethodsWithAttribute ( |
||
type | Type to look through for methods. | |
decoratingAttribute | Attribute of interest. | |
Результат | ICollection |
public static GetOneMethodWithAttribute ( |
||
type | Type of interest. | |
decoratingAttribute | Attribute of interest. | |
Результат |
public static GetTypesWithAttribute ( |
||
assembly | Assembly to search. | |
decoratingAttribute | /// Instance of the Type of attribute that marks interesting methods. /// | |
Результат | ICollection |
public static HasAttribute ( ITestMethod method, |
||
method | ITestMethod | ITestMethod instance. |
decoratingAttribute | Attribute of interest. | |
Результат | bool |
public static HasAttribute ( |
||
member | MemberInfo instance. | |
decoratingAttribute | Attribute of interest. | |
Результат | bool |