ObjectAssertions Class Methods
In This Topic
For a list of all members of this type, see ObjectAssertions members .
Public Methods
Name Description
Be Overloaded. Asserts that a value equals expected using the provided comparer .
BeAssignableTo Overloaded. Asserts that the object is assignable to a variable of type T . (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions> )
BeEquivalentTo Overloaded.
Asserts that an object is equivalent to another object.
(Inherited from FluentAssertions.Primitives.ObjectAssertions<object,ObjectAssertions> )
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> )
BeOneOf Overloaded. Asserts that a value is one of the specified validValues using the provided comparer .
BeSameAs
Asserts that an object reference refers to the exact same object as another object reference.
(Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions> )
Equals (Inherited from FluentAssertions.Primitives.ObjectAssertions<object,ObjectAssertions> )
Match Overloaded. Asserts that the predicate is satisfied. (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions> )
NotBe Overloaded. Asserts that a value does not equal unexpected using the provided comparer .
NotBeAssignableTo Overloaded. Asserts that the object is not assignable to a variable of type T . (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions> )
NotBeEquivalentTo Overloaded.
Asserts that an object is not equivalent to another object.
(Inherited from FluentAssertions.Primitives.ObjectAssertions<object,ObjectAssertions> )
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> )
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
2025 © Xceed Software Inc.
4170 Grande-Allée, Suite 100, Greenfield Park, Qc J4V 3N2