
[DebuggerNonUserCode()] public class TypeAssertions : FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>
System.Object
FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>
FluentAssertions.Types.TypeAssertions
Name | Description | |
---|---|---|
![]() | TypeAssertions Constructor | Initializes a new instance of the TypeAssertions class. |
Name | Description | |
---|---|---|
![]() | CurrentAssertionChain | Provides access to the FluentAssertions.Execution.AssertionChain that this assertion class was initialized with. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | Subject | Gets the object whose value is being asserted. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
Name | Description | |
---|---|---|
![]() | Identifier | Overridden. Returns the type of the subject the assertion applies on. It should be a user-friendly name as it is included in the failure message. Returns the type of the subject the assertion applies on. |
Name | Description | |
---|---|---|
![]() | Be | Overloaded. Asserts that the current System.Type is equal to the specified TExpected type. |
![]() | BeAbstract | Asserts that the current System.Type is abstract. |
![]() | BeAssignableTo | Overloaded. Asserts than an instance of the subject type is assignable variable of type T. |
![]() | BeDecoratedWith | Overloaded. Asserts that the current System.Type is decorated with the specified TAttribute. |
![]() | BeDecoratedWithOrInherit | Overloaded. Asserts that the current System.Type is decorated with, or inherits from a parent class, the specified TAttribute. |
![]() | BeDerivedFrom | Overloaded. Asserts that the current System.Type is derived from baseType. |
![]() | BeNull | Asserts that the current object has not been initialized yet. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | BeOfType | Overloaded. Asserts that the object is of the specified type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | BeSameAs | Asserts that an object reference refers to the exact same object as another object reference. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | BeSealed | Asserts that the current System.Type is sealed. |
![]() | BeStatic | Asserts that the current System.Type is static. |
![]() | Equals | (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | HaveAccessModifier | Asserts that the current System.Type has the specified C# accessModifier. |
![]() | HaveConstructor | Asserts that the current System.Type has a constructor with parameterTypes. |
![]() | HaveDefaultConstructor | Asserts that the current System.Type has a default constructor. |
![]() | HaveExplicitConversionOperator | Overloaded. Asserts that the current System.Type has an explicit conversion operator that converts TSource into TTarget. |
![]() | HaveExplicitMethod | Overloaded. Asserts that the current System.Type explicitly implements a method named name from interface interfaceType. |
![]() | HaveExplicitProperty | Overloaded. Asserts that the current System.Type explicitly implements a property named name from interface interfaceType. |
![]() | HaveImplicitConversionOperator | Overloaded. Asserts that the current System.Type has an implicit conversion operator that converts TSource into TTarget. |
![]() | HaveIndexer | Asserts that the current System.Type has an indexer of type indexerType. with parameter types parameterTypes. |
![]() | HaveMethod | Asserts that the current System.Type has a method named name with parameter types parameterTypes. |
![]() | HaveProperty | Overloaded. Asserts that the current System.Type has a property of type propertyType named name. |
![]() | Implement | Overloaded. Asserts that the current System.Type implements interfaceType. |
![]() | Match | Overloaded. Asserts that the predicate is satisfied. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | NotBe | Overloaded. Asserts that the current type is not equal to the specified TUnexpected type. |
![]() | NotBeAbstract | Asserts that the current System.Type is not abstract. |
![]() | NotBeAssignableTo | Overloaded. Asserts than an instance of the subject type is not assignable variable of type T. |
![]() | NotBeDecoratedWith | Overloaded. Asserts that the current System.Type is not decorated with the specified TAttribute. |
![]() | NotBeDecoratedWithOrInherit | Overloaded. Asserts that the current System.Type is not decorated with and does not inherit from a parent class, the specified TAttribute. |
![]() | NotBeDerivedFrom | Overloaded. Asserts that the current System.Type is not derived from baseType. |
![]() | NotBeNull | Asserts that the current object has been initialized. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | NotBeOfType | Overloaded. Asserts that the object is not of the specified type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | NotBeSameAs | Asserts that an object reference refers to a different object than another object reference refers to. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
![]() | NotBeSealed | Asserts that the current System.Type is not sealed. |
![]() | NotBeStatic | Asserts that the current System.Type is not static. |
![]() | NotHaveAccessModifier | Asserts that the current System.Type does not have the specified C# accessModifier. |
![]() | NotHaveConstructor | Asserts that the current System.Type does not have a constructor with parameterTypes. |
![]() | NotHaveDefaultConstructor | Asserts that the current System.Type does not have a default constructor. |
![]() | NotHaveExplicitConversionOperator | Overloaded. Asserts that the current System.Type does not have an explicit conversion operator that converts TSource into TTarget. |
![]() | NotHaveExplicitMethod | Overloaded. Asserts that the current System.Type does not explicitly implement a method named name from interface interfaceType. |
![]() | NotHaveExplicitProperty | Overloaded. Asserts that the current System.Type does not explicitly implement a property named name from interface interfaceType. |
![]() | NotHaveImplicitConversionOperator | Overloaded. Asserts that the current System.Type does not have an implicit conversion operator that converts TSource into TTarget. |
![]() | NotHaveIndexer | Asserts that the current System.Type does not have an indexer that takes parameter types parameterTypes. |
![]() | NotHaveMethod | Asserts that the current System.Type does not expose a method named name with parameter types parameterTypes. |
![]() | NotHaveProperty | Asserts that the current System.Type does not have a property named name. |
![]() | NotImplement | Overloaded. Asserts that the current System.Type does not implement interfaceType. |
![]() | Satisfy<T> | Allows combining one or more assertions using the other assertion methods that this library offers on an instance of T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<Type,TypeAssertions>) |
Name | Description | |
---|---|---|
![]() | As<TTo> | Safely casts the specified object to the type specified through TTo. |
![]() | Awaiting | Overloaded. Invokes the specified action on a subject so that you can chain it with any of the assertions from FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions |
![]() | Enumerating | Overloaded. Forces enumerating a collection. Should be used to assert that a method that uses the yield keyword throws a particular exception. |
![]() | ExecutionTimeOf<T> | Provides methods for asserting the execution time of a method or property. |
![]() | Invoking | Overloaded. Invokes the specified action on a subject so that you can chain it with any of the assertions from FluentAssertions.Specialized.ActionAssertions |
![]() | Monitor | Overloaded. Starts monitoring eventSource for its events. |
![]() | Should | Overloaded. Returns an FluentAssertions.Specialized.ExecutionTimeAssertions object that can be used to assert the current FluentAssertions.Specialized.ExecutionTime. |
![]() | Should | Overloaded. Returns an FluentAssertions.Primitives.EnumAssertions<TEnum,TAssertions> object that can be used to assert the current TEnum. |
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