C# Class Open.TestHarness.ReflectionExtensions

Datei anzeigen Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
GetTags ( this member ) : IEnumerable

Retrieves the tag elements from the given type.

GetViewTestClasses ( this assembly ) : IEnumerable

Gets the collection of Types decorated with the [ViewTestClass] method.

GetViewTestClasses ( this assembly, string className ) : IEnumerable

Gets the collection of Types decorated with the [ViewTestClass] method.

GetViewTestMethods ( this assembly, string methodName = null ) : IEnumerable

Gets the collection of Method's (decorated with the [ViewTest] attribute) with the corresponding method name.

Method Details

GetTags() public static method

Retrieves the tag elements from the given type.
public static GetTags ( this member ) : IEnumerable
member this The type to examine.
return IEnumerable

GetViewTestClasses() public static method

Gets the collection of Types decorated with the [ViewTestClass] method.
public static GetViewTestClasses ( this assembly ) : IEnumerable
assembly this The assembly to look within.
return IEnumerable

GetViewTestClasses() public static method

Gets the collection of Types decorated with the [ViewTestClass] method.
public static GetViewTestClasses ( this assembly, string className ) : IEnumerable
assembly this The assembly to look within.
className string /// The class-name filter. If a simple class name, all classes that match (in any namespace) will be returned. /// If a fully qualified class-name (with namespace) is provided only that class will be retrieved. ///
return IEnumerable

GetViewTestMethods() public static method

Gets the collection of Method's (decorated with the [ViewTest] attribute) with the corresponding method name.
public static GetViewTestMethods ( this assembly, string methodName = null ) : IEnumerable
assembly this The assembly to look within.
methodName string /// The name of the method (not case sensitive).
/// If only the method name is specified, all matching methods (from any class in any namespace) will be returned.
/// If a fully-qualified method name (with namespace) is provided only that method will be retrieved.
/// Passing null returns all [ViewTest] methods within the assembly. ///
return IEnumerable