

[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. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Standard: netstandard2.0, netstandard2.1.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.