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
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps FakeItEasy from 5.4.0 to 7.0.0.
Release notes
Sourced from FakeItEasy's releases.
... (truncated)
Commits
f51fb50
Merge pull request #1820 from thomaslevesque/an-argument-constraintee9c9ba
Make A<T> and An<T> doc comments mention each other93e0d72
Remove unnecessary suppression for CA1704b96ece5
Update documentation for argument constraints2ff75e2
Approve API changes01adfb2
Add An<T> for argument constraints and specs6783267
Merge pull request #1817 from blairconrad/invoke-how-many-times62b6cf9
Correct indentation in ExceptionThrower.StronglyTyped.cs3d29874
Add Specs for illegal attempted use of fluent API8ec6cf9
Correct grammar in several I*Configuration interface XML docsDependabot 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 ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)