MethodInfoAssertions Class Methods
In This Topic
For a list of all members of this type, see MethodInfoAssertions members.
Public Methods
| | Name | Description |
 | BeAssignableTo | Overloaded. Asserts that the object is assignable to a variable of type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | BeAsync |
Asserts that the selected method is async.
|
 | BeDecoratedWith | Overloaded. Asserts that the selected member is decorated with the specified TAttribute. (Inherited from FluentAssertions.Types.MemberInfoAssertions<TSubject,TAssertions>) |
 | BeNull |
Asserts that the current object has not been initialized yet.
(Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | BeOfType | Overloaded. Asserts that the object is of the specified type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | BeSameAs |
Asserts that an object reference refers to the exact same object as another object reference.
(Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | BeVirtual |
Asserts that the selected method is virtual.
|
 | Equals | (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | HaveAccessModifier | Asserts that the selected member has the specified C# . (Inherited from FluentAssertions.Types.MethodBaseAssertions<MethodInfo,MethodInfoAssertions>) |
 | Match | Overloaded. Asserts that the predicate is satisfied. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | NotBeAssignableTo | Overloaded. Asserts that the object is not assignable to a variable of type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | NotBeAsync |
Asserts that the selected method is not async.
|
 | NotBeDecoratedWith | Overloaded. Asserts that the selected member is not decorated with the specified TAttribute. (Inherited from FluentAssertions.Types.MemberInfoAssertions<TSubject,TAssertions>) |
 | NotBeNull |
Asserts that the current object has been initialized.
(Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | NotBeOfType | Overloaded. Asserts that the object is not of the specified type T. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | NotBeSameAs |
Asserts that an object reference refers to a different object than another object reference refers to.
(Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
 | NotBeVirtual |
Asserts that the selected method is not virtual.
|
 | NotHaveAccessModifier | Asserts that the selected member does not have the specified C# . (Inherited from FluentAssertions.Types.MethodBaseAssertions<MethodInfo,MethodInfoAssertions>) |
 | NotReturn | Overloaded. Asserts that the selected method does not return returnType. |
 | NotReturnVoid |
Asserts that the selected method does not return void.
|
 | Return | Overloaded. Asserts that the selected method returns returnType. |
 | ReturnVoid |
Asserts that the selected method returns void.
|
 | Satisfy<T> | Allows combining one or more assertions using the other assertion methods that this library offers on an instance of . (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>) |
Top
Extension Methods
See Also