where did AssertionOptions go? · Issue #3016 · fluentassertions/fluentassertions · GitHub
Skip to content

where did AssertionOptions go? #3016

Description

@odyth

I see that there were changes from 6.0 to 8.0 involving renaming AssertionOption methods #2414, but then at some point AssertionOptions got deleted (it's still around in 7.0). How would one migrate this code to version 8. I'm trying to have this logic apply to every unit test not do it on a situational basis.

AssertionOptions.AssertEquivalencyUsing(options =>
    options.Using<DateTime>(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation, precision: TimeSpan.FromSeconds(1)))
        .WhenTypeIs<DateTime>());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions