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)
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
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
Bumps FakeItEasy from 5.1.0 to 7.0.1.
Release notes
Sourced from FakeItEasy's releases.
... (truncated)
Commits
87c7aba
Merge pull request #1827 from blairconrad/unnatural-constraintsf8644d5
Support parameterful argument matchers within unnatural Fakes' CallsToc16b54e
Merge pull request #1826 from blairconrad/new-tools-sharede56c68f
Use tools-shared that copies release checklist labelsc2852f5
Merge pull request #1823 from thomaslevesque/update-submodule28a31d8
Update tools-shared submodule489548a
Merge pull request #1822 from thomaslevesque/fix-warnings5a3de9a
Fix nullability warning514b2b4
Suppress CA22378e7e0cc
Fix warnings in build scriptDependabot 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