github FakeItEasy/FakeItEasy 8.0.0

latest releases: 8.2.0, 8.1.0, 8.0.1...
5 months ago

Changed

  • Upgrade Castle.Core to 5.1.1 (#1925)

  • Match enumerable arguments by comparing contents rather than via Equals (#1960)

    This is technically a breaking change, but it's pretty unlikely that anyone was relying on the old behavior. Only if someone were passing an enumerable to a call specification and either

    • relying on the reference equality to fail, or
    • the argument's type has overridden Equals with an implementation that does not compare the sequence item-by-item as we propose to do

    would it be an unwelcome surprise.

Removed

  • net5.0 target framework assembly (#1936)

New

  • net6.0 target framework assembly (#1936)
  • Registry of argument comparers (#1952, #1961)
    Discoverable argument comparers can be implemented by deriving from ArgumentEqualityComparer<T> or implementing IArgumentEqualityComparer. Learn more at Custom Argument Equality.
  • Match enumerable arguments by comparing contents rather than via Equals (#1960)

Fixed

  • Failure to create fake via constructor with in parameter (#1948)
  • Nesting or compounding An-built constraints throws wrong exception (#1966)

Additional Items

  • Publish target framework Support Policy (#1935)
  • Escape HTML tags in Formatting Argument Values docs (#1955)
  • Fix broken link in documentation (#1956)
  • Various docs-generating dependency updates, suggested by dependabot for security (#1945, #1954, #1959, #1971)
  • Wrong account making "This change has been released" notes on issues (#1933)
  • Cause "👀 publish-docs-preview" label to publish docs preview for a pull request (#1939, #1941, #1942, #1943)
  • Install .NET Core 3.1 on Windows in CI (#1954)

With special thanks for contributions to this release from:

Don't miss a new FakeItEasy release

NewReleases is sending notifications on new releases.