github FakeItEasy/FakeItEasy 5.4.0

latest releases: 8.2.0, 8.1.0, 8.0.1...
4 years ago

Changed

New

  • Now targets netstandard2.1, as well as all the old favorites (#1658)

  • Enhanced support for ValueTask and ValueTask<TResult>, comparable to that for Task and Task<TResult> (#1658):

    • a ValueTask Dummy is an actual completed ValueTask
    • a ValueTask<TResult> Dummy is an actual ValueTask<TResult> that is already completed and whose Result is a Dummy of type TResult, or a default TResult if no Dummy can be made for TResult
    • unconfigured Fake methods that accept a cancellation token and return a ValueTask (or ValueTask<T>) will return a cancelled task object
    • new convenience overloads for configuring Fake methods that return ValueTask or ValueTask<T>:

    If your test project targets a framework compatible with .NET Standard 2.1 or higher, these last two features are available in the FakeItEasy package itself. Otherwise, you can access them by referencing the new FakeItEasy.Extensions.ValueType NuGet package.

  • Analyzers now target .NET Standard 2.0 (#1667)

Additional Items

  • Remove unused internal option to skip formatting of argument values (#1665)
  • Parameterize approval tests (#1669)
  • Support building only part of the target frameworks (#1662)
  • Create a bot account for release process automation (#1663)

Don't miss a new FakeItEasy release

NewReleases is sending notifications on new releases.