FakeItEasy v5.0.0-alpha.1 Release Notes

Release Date: 2018-12-10 // over 5 years ago
  • ๐Ÿ”„ Changed

    • ๐Ÿ‘• No longer passing IFakeObjectCallRule to IInterceptionListener.OnAfterCallIntercepted (#1494, #1521)
    • ๐Ÿ†“ Restrict typeparams in generic Fake creation methods to reference types, and free-form delegates to Delegate types (#1465)
    • ๐Ÿ“‡ Renamed IRepeatConfiguration type used in fluent API to IBehaviorLifetimeConfiguration (#1294)
    • Can only fake delegates accessible to DynamicProxy (#1508)
    • Fakes, and custom exceptions thrown by the library, are no longer binary serializable (#1500)

    โœ‚ Removed from the public API

    • โœ… Automatic fake injection into system under test (InitializeFixture) (#992)
    • IInterceptedFakeObjectCall.AsReadOnly (#1505)
    • Raise.With<TEventHandler> (#1152)
      ๐Ÿ‘‰ Use Raise.FreeForm.With (or Raise.FreeForm(Of TEventHandler).With for VB) instead.
    • ๐Ÿ“ฆ Analyzer meta-package FakeItEasy.Analyzer (#1509)
      ๐Ÿ‘‰ Use FakeItEasy.Analyzer.CSharp or FakeItEasy.Analyzer.VisualBasic instead

    ๐Ÿ—„ Deprecated

    • Specifying call count constraints using Repeated (#1295)
      ๐Ÿ‘‰ Use one of the following formats instead:

      A.CallTo(() => foo.Bar()).MustHaveHappened();A.CallTo(() => foo.Bar()).MustNotHaveHappened();A.CallTo(() => foo.Bar()).MustHaveHappenedOnceExactly();A.CallTo(() => foo.Bar()).MustHaveHappenedOnceOrMore();A.CallTo(() => foo.Bar()).MustHaveHappenedOnceOrLess();A.CallTo(() => foo.Bar()).MustHaveHappenedTwiceExactly();A.CallTo(() => foo.Bar()).MustHaveHappenedTwiceOrMore();A.CallTo(() => foo.Bar()).MustHaveHappenedTwiceOrLess();A.CallTo(() => foo.Bar()).MustHaveHappened(4, Times.Exactly);A.CallTo(() => foo.Bar()).MustHaveHappened(6, Times.OrMore);A.CallTo(() => foo.Bar()).MustHaveHappened(7, Times.OrLess);A.CallTo(() => foo.Bar()).MustHaveHappenedANumberOfTimesMatching(n => n % 2 == 0);

    ๐Ÿ†• New

    • ๐Ÿ”ง Greatly reduced time to create, configure, call, and assert on Fakes (#1466, #1469, #1470, #1489, #1493, #1507)
    • ๐Ÿ”ง Warn at configuration time that delegates can't call a base method (#1492)

    โž• Additional Items

    • Document advanced usage methods (#1474)
    • Simplify ServiceLocator (#1478)
    • ๐Ÿšš Move most proxy generator tests to specs (#1495)
    • ๐Ÿ‘ Characterize/figure out serialization support (#1499)
    • โฌ†๏ธ Upgrade Bullseye to 2.3.0-beta.6 (#1464, #1471, #1524, #1528, #1531, #1534)
    • โฌ†๏ธ Upgrade Xbehave.Core to 2.4.0 (#1480)
    • โฌ†๏ธ Upgrade SimpleExec to 4.2.0 (#1502, #1531)
    • โฌ†๏ธ Upgrade Microsoft.NET.Test.Sdk to 15.9.0 (#1482)
    • ๐Ÿ‘‰ Use MinVer to generate version numbers (#1516)
    • ๐Ÿ”จ Refactored build script (#1520, #1523)
    • ๐Ÿ— Show messages only (no stack trace) for exceptions during build (#1529)
    • โœ‚ Remove MonoDevelop section from sln (#1533)
    • โœ‚ Remove obsolete branches from the repository (#1535)

    ๐Ÿš€ With special thanks for contributions to this release from: