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.2.
Release notes
Sourced from FakeItEasy's releases.
... (truncated)
Commits
fa734c7
Merge pull request #1832 from blairconrad/create-better-exception8a2161d
Remove superfluous check that proxy is not a value type73a72e6
Detect attempts to fake a value type class early onc067e20
Add failing test to show wrong exception62d6929
Have CreateFake delegate to its overload61b23f7
Merge pull request #1831 from thomaslevesque/dummy-fakes-implicit-optionsc4f1832
Use implicit creation options for dummy fakes1996e62
Refactor proxy options factory into its own class93ec302
Add failing test to demonstrate the problem87c7aba
Merge pull request #1827 from blairconrad/unnatural-constraintsDependabot 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