Fluent Assertions Documentation
FluentAssertions Assembly / FluentAssertions.Equivalency Namespace / IEquivalencyOptions Interface
In This Topic
    IEquivalencyOptions Interface
    In This Topic
    Provides the run-time details of the EquivalencyOptions<TExpectation> class.
    Object Model
    IEquivalencyOptions InterfaceConversionSelector ClassOrderingRuleCollection ClassITraceWriter Interface
    Syntax
    public interface IEquivalencyOptions 
    Public Properties
     NameDescription
     Property Gets a value indicating whether recursion is allowed to continue indefinitely.  
     Property Gets a value indicating whether records should be compared by value instead of their members  
     Property Contains the rules for what properties to run an auto-conversion.  
     Property Gets value indicating how cyclic references should be handled. By default, it will throw an exception.  
     Property Gets value indicating how the enums should be compared.  
     PropertyGets a value indicating whether members on the expectation marked with [System.ComponentModel.EditorBrowsableAttribute] and System.ComponentModel.EditorBrowsableState.Never should be excluded.  
     PropertyGets a value indicating whether a case-insensitive comparer is used when comparing strings.  
     PropertyGets a value indicating whether leading whitespace is ignored when comparing strings.  
     PropertyGets a value indicating whether members on the subject marked with [System.ComponentModel.EditorBrowsableAttribute] and System.ComponentModel.EditorBrowsableState.Never should be treated as though they don't exist.  
     PropertyGets a value indicating whether trailing whitespace is ignored when comparing strings.  
     Property Gets a value indicating whether and which fields should be considered.  
     Property Gets a value indicating whether and which properties should be considered.  
     Property Gets a value indicating whether the differences between string properties should include the full values of the subject and expectation instead of just the fragment that differs.  
     Property Gets a value indicating whether or not the assertion must perform a deep comparison.  
     Property Gets an ordered collection of matching rules that determine which subject members are matched with which expectation properties.  
     Property Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, ordering is irrelevant.  
     Property Gets an ordered collection of selection rules that define what members (e.g. properties or fields) are included.  
     PropertyGets the currently configured tracer, or a null reference (Nothing in Visual Basic) if no tracing was configured.  
     Property Gets an ordered collection of Equivalency steps how a subject is compared with the expectation.  
     Property Gets a value indicating whether the runtime type of the expectation should be used rather than the declared type.  
    Top
    Public Methods
     NameDescription
     Method Determines the right strategy for evaluating the equality of objects of this type.  
    Top
    Supported Frameworks

    .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.

    See Also