Skip to content

Conversation

@lg2de
Copy link
Contributor

@lg2de lg2de commented Aug 5, 2022

In addition to CompleteWithAsync in assertions for Task and Task<T>, and similar to assertions for TaskCompletionSource, I added NotCompleteWithinAsync.
Checking the existing tests I found some inconsistency which I've fixed (hopefully) in several separate commits. Maybe you want to review these commits one by one for better overview.

Copy link
Member

@dennisdoomen dennisdoomen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Just some improvements.

@lg2de
Copy link
Contributor Author

lg2de commented Aug 6, 2022

I'm wondering why there is no "comment" from coveralls with the coverage report!?

@dennisdoomen
Copy link
Member

I'm wondering why there is no "comment" from coveralls with the coverage report!?

It sometimes doesn't update the PR, but the analysis did run.

@lg2de lg2de force-pushed the not-complete-within branch from 9762bf1 to 7a2803f Compare August 9, 2022 06:56
@coveralls
Copy link

coveralls commented Aug 9, 2022

Pull Request Test Coverage Report for Build 2827500804

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 47 of 47 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.0%) to 96.653%

Totals Coverage Status
Change from base Build 2822953981: 1.0%
Covered Lines: 12317
Relevant Lines: 12583

💛 - Coveralls

@lg2de lg2de force-pushed the not-complete-within branch from 48ab0e9 to 6d4019b Compare August 9, 2022 17:47
@lg2de

This comment was marked as resolved.

@lg2de
Copy link
Contributor Author

lg2de commented Aug 9, 2022

Would be great to merge this PR without squashing because of the refactorings.

@lg2de lg2de changed the title Implemented NotCompleteWithinAsync for Task assertions Added NotCompleteWithinAsync for Task assertions Aug 9, 2022
@dennisdoomen
Copy link
Member

Would be great to merge this PR without squashing because of the refactorings.

If you would squash some of the commits that belong together and keep the refactoring and renames separate, we can.

@lg2de lg2de force-pushed the not-complete-within branch from b22f20f to 59398c8 Compare August 10, 2022 08:12
@lg2de
Copy link
Contributor Author

lg2de commented Aug 10, 2022

If you would squash some of the commits that belong together and keep the refactoring and renames separate, we can.

Hope, this is sufficient.

@jnyrup jnyrup added the feature label Aug 13, 2022
@jnyrup jnyrup merged commit 19f2bcd into fluentassertions:develop Aug 13, 2022
@jnyrup jnyrup changed the title Added NotCompleteWithinAsync for Task assertions Added NotCompleteWithinAsync for Task assertions Aug 13, 2022
@lg2de lg2de deleted the not-complete-within branch August 13, 2022 16:45
renovate bot referenced this pull request in orso-co/Orso.Arpa.Api Oct 25, 2022
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [FluentAssertions](https://www.fluentassertions.com/)
([source](https://togithub.com/fluentassertions/fluentassertions)) |
nuget | minor | `6.7.0` -> `6.8.0` |

---

### Release Notes

<details>
<summary>fluentassertions/fluentassertions</summary>

###
[`v6.8.0`](https://togithub.com/fluentassertions/fluentassertions/releases/tag/6.8.0)

[Compare
Source](https://togithub.com/fluentassertions/fluentassertions/compare/6.7.0...6.8.0)

<!-- Release notes generated using configuration in .github/release.yml
at develop -->

##### What's Changed

##### New features

- Extend collection assertions with `ContainInConsecutiveOrder` and
`NotContainInConsecutiveOrder` by
[@&#8203;StacyCash](https://togithub.com/StacyCash) in
[https://github.com/fluentassertions/fluentassertions/pull/1963](https://togithub.com/fluentassertions/fluentassertions/pull/1963)
- Added `NotCompleteWithinAsync` for Task assertions by
[@&#8203;lg2de](https://togithub.com/lg2de) in
[https://github.com/fluentassertions/fluentassertions/pull/1967](https://togithub.com/fluentassertions/fluentassertions/pull/1967)
- Added assertions for non-generic `TaskCompletionSource` by
[@&#8203;lg2de](https://togithub.com/lg2de) in
[https://github.com/fluentassertions/fluentassertions/pull/1961](https://togithub.com/fluentassertions/fluentassertions/pull/1961)
- Exposes the `IMonitor` object to extensions methods. by
[@&#8203;A-Kjeldgaard](https://togithub.com/A-Kjeldgaard) in
[https://github.com/fluentassertions/fluentassertions/pull/2010](https://togithub.com/fluentassertions/fluentassertions/pull/2010)

##### Improvements

- Optimize `BeEquivalentTo` by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1939](https://togithub.com/fluentassertions/fluentassertions/pull/1939)
- Print commas at the end of the line by
[@&#8203;ronaldkroon](https://togithub.com/ronaldkroon) in
[https://github.com/fluentassertions/fluentassertions/pull/1945](https://togithub.com/fluentassertions/fluentassertions/pull/1945)
- Avoid allocating sub-arrays in `ContainInOrder` by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1960](https://togithub.com/fluentassertions/fluentassertions/pull/1960)
- Extend `IObjectInfo` with info about `DeclaringType` by
[@&#8203;dennisdoomen](https://togithub.com/dennisdoomen) in
[https://github.com/fluentassertions/fluentassertions/pull/1950](https://togithub.com/fluentassertions/fluentassertions/pull/1950)
- Prepare constructors of `AsyncFunctionAssertions` to make them
protected in V7 by [@&#8203;lg2de](https://togithub.com/lg2de) in
[https://github.com/fluentassertions/fluentassertions/pull/1972](https://togithub.com/fluentassertions/fluentassertions/pull/1972)
- Calculate the difference between the subject and the expected nearby
time by [@&#8203;IT-VBFK](https://togithub.com/IT-VBFK) in
[https://github.com/fluentassertions/fluentassertions/pull/2013](https://togithub.com/fluentassertions/fluentassertions/pull/2013)

##### Fixes

- Filter dynamic methods from stack trace by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1943](https://togithub.com/fluentassertions/fluentassertions/pull/1943)
- Make For/Excluding work with nested paths by
[@&#8203;whymatter](https://togithub.com/whymatter) in
[https://github.com/fluentassertions/fluentassertions/pull/1953](https://togithub.com/fluentassertions/fluentassertions/pull/1953)
- Use InvariantCulture when doing case-insensitive matches by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1985](https://togithub.com/fluentassertions/fluentassertions/pull/1985)
- Global record equivalency settings were not taken into account by
[@&#8203;dennisdoomen](https://togithub.com/dennisdoomen) in
[https://github.com/fluentassertions/fluentassertions/pull/1984](https://togithub.com/fluentassertions/fluentassertions/pull/1984)
- Escape brackets in execution time failures by
[@&#8203;Briaoeuidhtns](https://togithub.com/Briaoeuidhtns) in
[https://github.com/fluentassertions/fluentassertions/pull/1994](https://togithub.com/fluentassertions/fluentassertions/pull/1994)

##### Documentation

- More specifically clarify the intentions of `WithArgs` by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1929](https://togithub.com/fluentassertions/fluentassertions/pull/1929)
- Remove building link from the website by
[@&#8203;IT-VBFK](https://togithub.com/IT-VBFK) in
[https://github.com/fluentassertions/fluentassertions/pull/1934](https://togithub.com/fluentassertions/fluentassertions/pull/1934)
- Add `Enum.BeOneOf` to the docs by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1958](https://togithub.com/fluentassertions/fluentassertions/pull/1958)
- Document how to use `ModuleInitializer` by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1966](https://togithub.com/fluentassertions/fluentassertions/pull/1966)
- Fix a typo on the Assembly References documentation page by
[@&#8203;asydikov](https://togithub.com/asydikov) in
[https://github.com/fluentassertions/fluentassertions/pull/1970](https://togithub.com/fluentassertions/fluentassertions/pull/1970)
- Update summary of `EquivalencyValidator` by
[@&#8203;Wolgo](https://togithub.com/Wolgo) in
[https://github.com/fluentassertions/fluentassertions/pull/1991](https://togithub.com/fluentassertions/fluentassertions/pull/1991)
- Improve error messages for accidental `Equals` usage by
[@&#8203;nycdotnet](https://togithub.com/nycdotnet) in
[https://github.com/fluentassertions/fluentassertions/pull/2006](https://togithub.com/fluentassertions/fluentassertions/pull/2006)

##### Others

- Upgrade to C# 10 by [@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1935](https://togithub.com/fluentassertions/fluentassertions/pull/1935)
- Use file scoped namespaces by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1936](https://togithub.com/fluentassertions/fluentassertions/pull/1936)
- More use of pattern matching and lifted operators by
[@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1937](https://togithub.com/fluentassertions/fluentassertions/pull/1937)
- Update nuget packages by [@&#8203;jnyrup](https://togithub.com/jnyrup)
in
[https://github.com/fluentassertions/fluentassertions/pull/1962](https://togithub.com/fluentassertions/fluentassertions/pull/1962)
- Make it possible for third-party libraries to access the underlying
collection of instances of `ReadOnlyNonGenericCollectionWrapper` by
[@&#8203;logiclrd](https://togithub.com/logiclrd) in
[https://github.com/fluentassertions/fluentassertions/pull/1968](https://togithub.com/fluentassertions/fluentassertions/pull/1968)
- Code cleanups by [@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1973](https://togithub.com/fluentassertions/fluentassertions/pull/1973)
- Improve coverage for `CollectionMemberObjectInfo` by
[@&#8203;dennisdoomen](https://togithub.com/dennisdoomen) in
[https://github.com/fluentassertions/fluentassertions/pull/1983](https://togithub.com/fluentassertions/fluentassertions/pull/1983)
- Deduplicate target frameworks by
[@&#8203;0xced](https://togithub.com/0xced) in
[https://github.com/fluentassertions/fluentassertions/pull/1980](https://togithub.com/fluentassertions/fluentassertions/pull/1980)
- Removed netcoreapp2.0 framework check in formatting precision tests by
[@&#8203;iliashkolyar](https://togithub.com/iliashkolyar) in
[https://github.com/fluentassertions/fluentassertions/pull/1976](https://togithub.com/fluentassertions/fluentassertions/pull/1976)
- Rename `ShouldCompareMembersThisDeep` to `ShouldCompareNodesThisDeep`
by [@&#8203;Wolgo](https://togithub.com/Wolgo) in
[https://github.com/fluentassertions/fluentassertions/pull/1992](https://togithub.com/fluentassertions/fluentassertions/pull/1992)
- Update nuget packages by [@&#8203;jnyrup](https://togithub.com/jnyrup)
in
[https://github.com/fluentassertions/fluentassertions/pull/1996](https://togithub.com/fluentassertions/fluentassertions/pull/1996)
- Cleanups by [@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/1998](https://togithub.com/fluentassertions/fluentassertions/pull/1998)
- Update GitHub actions by [@&#8203;jnyrup](https://togithub.com/jnyrup)
in
[https://github.com/fluentassertions/fluentassertions/pull/2007](https://togithub.com/fluentassertions/fluentassertions/pull/2007)
- Fix the PR link in releases.md by
[@&#8203;IT-VBFK](https://togithub.com/IT-VBFK) in
[https://github.com/fluentassertions/fluentassertions/pull/2014](https://togithub.com/fluentassertions/fluentassertions/pull/2014)
- Prepare 6.8.0 by [@&#8203;jnyrup](https://togithub.com/jnyrup) in
[https://github.com/fluentassertions/fluentassertions/pull/2020](https://togithub.com/fluentassertions/fluentassertions/pull/2020)

##### New Contributors

- [@&#8203;StacyCash](https://togithub.com/StacyCash) made their first
contribution in
[https://github.com/fluentassertions/fluentassertions/pull/1963](https://togithub.com/fluentassertions/fluentassertions/pull/1963)
- [@&#8203;asydikov](https://togithub.com/asydikov) made their first
contribution in
[https://github.com/fluentassertions/fluentassertions/pull/1970](https://togithub.com/fluentassertions/fluentassertions/pull/1970)
- [@&#8203;0xced](https://togithub.com/0xced) made their first
contribution in
[https://github.com/fluentassertions/fluentassertions/pull/1980](https://togithub.com/fluentassertions/fluentassertions/pull/1980)
- [@&#8203;Wolgo](https://togithub.com/Wolgo) made their first
contribution in
[https://github.com/fluentassertions/fluentassertions/pull/1991](https://togithub.com/fluentassertions/fluentassertions/pull/1991)
- [@&#8203;Briaoeuidhtns](https://togithub.com/Briaoeuidhtns) made their
first contribution in
[https://github.com/fluentassertions/fluentassertions/pull/1994](https://togithub.com/fluentassertions/fluentassertions/pull/1994)
- [@&#8203;nycdotnet](https://togithub.com/nycdotnet) made their first
contribution in
[https://github.com/fluentassertions/fluentassertions/pull/2006](https://togithub.com/fluentassertions/fluentassertions/pull/2006)
- [@&#8203;A-Kjeldgaard](https://togithub.com/A-Kjeldgaard) made their
first contribution in
[https://github.com/fluentassertions/fluentassertions/pull/2010](https://togithub.com/fluentassertions/fluentassertions/pull/2010)

**Full Changelog**:
fluentassertions/fluentassertions@6.7.0...6.8.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 10pm every weekday,every
weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge -
At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click
this checkbox.

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/orso-co/Orso.Arpa.Api).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yNDEuOSIsInVwZGF0ZWRJblZlciI6IjMyLjI0MS45In0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants