Skip to content

Combine Configuration, Services and AssertionOptions #2291

@dennisdoomen

Description

@dennisdoomen

We currently have two different entry points for configuration. One, the Services.Configuration, is used for specifying where to find custom value formatters and which test framework to use, and can be configured through app.config (provided the .NET platform supports that). The other, AssertionOptions, is used to change formatting settings and alter the equivalency plan.

Current idea:

static class AssertionOptions

  • Initialized through EnsureInitialized() and can be reset using Reset()
  • Properties
    • EquivalencyPlan
    • Formatting (FormattingOptions)
    • Equivalency (EquivalencyOptions)
    • ValueFormatters
      • DetectionMode
      • AssemblyToScan
    • TestFrameworkName

static class AssertionRuntime

  • Executes custom initializers
  • Properties
    * ThrowException
    * TestFramework (ITestFramework)

Relates to #2290

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions