C# Класс Testeroids.Aspects.TypeInvestigationService

Responsible for checking the nature of a type.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetTestMethods ( Type type, bool flattenHierarchy ) : IEnumerable

Selects all test methods in a given type.

GetTestedClassTypeName ( Type targetType ) : string

Get the tested class type name.

Приватные методы

Метод Описание
GetAbstractContextSpecificationTypes ( Type classTypeToInvestigate ) : IEnumerable
GetAllContextSpecificationTypes ( Type classTypeToInvestigate ) : IEnumerable
GetAllNestedTypes ( Type classTypeToInvestigate ) : IEnumerable
GetAllTestMethods ( Type classTypeToInvestigate ) : IEnumerable
GetConcreteContextSpecificationTypes ( Type classTypeToInvestigate ) : IEnumerable
GetExpectedExceptionTestMethods ( Type classTypeToInvestigate ) : IEnumerable
GetNonPrerequisiteTestMethods ( Type classTypeToInvestigate ) : IEnumerable
GetPrerequisiteTestMethods ( Type classTypeToInvestigate ) : IEnumerable
IsAbstractContextSpecification ( Type classTypeToInvestigate ) : bool
IsConcreteContextSpecification ( Type classTypeToInvestigate ) : bool
IsContextSpecification ( Type classTypeToInvestigate ) : bool
IsExpectedExceptionTestMethod ( MethodBase method ) : bool
IsPrerequisiteTestMethod ( MethodBase method ) : bool
IsTestMethod ( MethodBase method ) : bool

Описание методов

GetTestMethods() публичный статический Метод

Selects all test methods in a given type.
public static GetTestMethods ( Type type, bool flattenHierarchy ) : IEnumerable
type System.Type /// The type to inspect. ///
flattenHierarchy bool /// Specifies that tests from parent fixtures should be returned. ///
Результат IEnumerable

GetTestedClassTypeName() публичный статический Метод

Get the tested class type name.
public static GetTestedClassTypeName ( Type targetType ) : string
targetType System.Type The test class from which the tested class must be found.
Результат string