FakeItEasy v5.4.0 Release Notes

Release Date: 2019-10-23 // over 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)