cake-contrib / Cake.Incubator

This project contains various experimental but useful extension methods and aliases for Cake
http://cakebuild.net/api/Cake.Incubator/
Other
19 stars 26 forks source link

(maint): Bump FakeItEasy from 5.1.0 to 7.0.2 #142

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps FakeItEasy from 5.1.0 to 7.0.2.

Release notes

Sourced from FakeItEasy's releases.

7.0.2

Fixed

  • Implicit creation options are ignored for dummy fakes (#1829)
  • Create.Fake throws ArgumentException instead of FakeCreationException when passed a value type and fake creation options (#1830)

7.0.1

Fixed

  • Using Argument constraints that have a parameter node with an unnatural Fake throws "Exception: Argument types do not match" (#1825)

Additional Items

  • Fix build warnings introduced with .NET SDK 5.0.201 (#1822)
  • Update tools-shared submodule (#1823, #1826)

With special thanks for contributions to this release from:

7.0.0

Changed

  • Registering a handler on a fake Wrapping an event does not work (#1795) Registering the handler will now work. This introduced a minor change on how events are intercepted and raised. It will be completely transparent to most users. Consult raising events documentation for more details about the current behavior.

Dropped Framework Support

  • No longer producing assemblies for unsupported frameworks .NET Framework 4.0 and .NET Standard 1.6 (#1798, #1802)

Deprecations

  • ClearConfiguration (#1767) To "unconfigure" a fake so it has default behavior, discard the fake and create a new one. If this is not feasible, for example because you wish to remove the configuration in the middle of a test and the system under test already holds the fake, see Changing behavior between calls.

New Framework Support

  • Produce new assemblies that target .NET 5.0 directly (#1803)

New

  • Add EqualTo overload with equality comparer (#1810)
  • Introduce An for argument constraints (#1819)
  • Better extension point scanning (#1813) now FakeItEasy searches the following assemblies for classes that implement the various extensions points:
    • its own assembly,
    • assemblies already loaded in the current AppDomain, if they reference FakeItEasy,
    • assemblies referenced by assemblies from the previous bullet point, if they reference FakeItEasy,
    • additional assemblies identified by the Bootstrapper's GetAssemblyFileNamesToScanForExtensions method, if they reference FakeItEasy
  • Support specifying number of calls when using Invokes and no additional member configuration (#1812): Previously DoesNothing would be required in the chain, so
    A.CallTo(() => fake.Method()).Invokes(…).DoesNothing().Once()
    
    can now be written
    A.CallTo(() => fake.Method()).Invokes(…).Once()
    

... (truncated)

Commits
  • fa734c7 Merge pull request #1832 from blairconrad/create-better-exception
  • 8a2161d Remove superfluous check that proxy is not a value type
  • 73a72e6 Detect attempts to fake a value type class early on
  • c067e20 Add failing test to show wrong exception
  • 62d6929 Have CreateFake delegate to its overload
  • 61b23f7 Merge pull request #1831 from thomaslevesque/dummy-fakes-implicit-options
  • c4f1832 Use implicit creation options for dummy fakes
  • 1996e62 Refactor proxy options factory into its own class
  • 93ec302 Add failing test to demonstrate the problem
  • 87c7aba Merge pull request #1827 from blairconrad/unnatural-constraints
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
dependabot[bot] commented 3 years ago

Superseded by #149.