Fluent Assertions Documentation
FluentAssertions.Types Namespace / TypeSelector Class
Members
In This Topic
    TypeSelector Class
    In This Topic
    Allows for fluent filtering a list of types.
    Syntax
    public class TypeSelector 
    Inheritance Hierarchy

    System.Object
       FluentAssertions.Types.TypeSelector

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Methods
     NameDescription
    Public Method Returns an enumerator that iterates through the collection.  
    Public Method Filters and returns the types that are abstract  
    Public Method Determines whether the type is a class  
    Public Method Determines whether a type is decorated with a particular attribute.  
    Public Method Determines whether a type is decorated with, or inherits from a parent class, a particular attribute.  
    Public MethodDetermines whether the namespace of type is exactly namespace.  
    Public Method Filters and returns only the types that are interfaces  
    Public Method Filters and returns the types that are not abstract  
    Public Method Determines whether the type is not a class  
    Public Method Determines whether a type is not decorated with a particular attribute.  
    Public Method Determines whether a type is not decorated with and does not inherit from a parent class, a particular attribute.  
    Public MethodDetermines whether the namespace of type is exactly not namespace.  
    Public Method Filters and returns only the types that are not interfaces  
    Public Method Filters and returns the types that are not sealed  
    Public Method Determines whether the type is not static  
    Public MethodDetermines whether the namespace of type does not start with namespace.  
    Public Method Filters and returns the types that are not value types  
    Public Method Filters and returns the types that are sealed  
    Public Method Determines whether the type is static  
    Public MethodDetermines whether the namespace of type starts with namespace.  
    Public Method Filters and returns the types that are value types  
    Public Method Determines whether a type is a subclass of another type, but NOT the same type.  
    Public Method Determines whether a type is not a subclass of another type.  
    Public Method Determines whether a type does not implement an interface (but is not the interface itself).  
    Public Method Determines whether a type implements an interface (but is not the interface itself).  
    Public MethodAllows to filter the types with the predicate passed  
    Public MethodThe resulting System.Type objects.  
    Public MethodReturns T for the types which are IEnumerable or implement the IEnumerable; the type itself otherwise  
    Public MethodReturns T for the types which are Task or ValueTask; the type itself otherwise  
    Top
    Extension Methods
     NameDescription
    Public Extension MethodSafely casts the specified object to the type specified through TTo.
    Public Extension MethodOverloaded. Invokes the specified action on a subject so that you can chain it with any of the assertions from FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions
    Public Extension MethodOverloaded. Forces enumerating a collection. Should be used to assert that a method that uses the yield keyword throws a particular exception.
    Public Extension Method Provides methods for asserting the execution time of a method or property.
    Public Extension MethodOverloaded. Invokes the specified action on a subject so that you can chain it with any of the assertions from FluentAssertions.Specialized.ActionAssertions
    Public Extension MethodOverloaded. Returns a method selector for the current System.Type.
    Public Extension MethodOverloaded. Starts monitoring eventSource for its events.
    Public Extension MethodOverloaded. Returns a property selector for the current System.Type.
    Public Extension MethodOverloaded. Returns an FluentAssertions.Specialized.ExecutionTimeAssertions object that can be used to assert the current FluentAssertions.Specialized.ExecutionTime.
    Public Extension MethodOverloaded. Returns an FluentAssertions.Primitives.EnumAssertions<TEnum,TAssertions> object that can be used to assert the current TEnum.
    Public Extension MethodOverloaded. Returns the types that are visible outside the specified System.Reflection.Assembly.
    Top
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also