• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fluentassertions / fluentassertions / 32632443644
98%

Build:
DEFAULT BRANCH: main
Ran 23 Aug 2026 10:06AM UTC
Jobs 1
Files 351
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Aug 2026 09:57AM UTC coverage: 97.17% (+0.004%) from 97.166%
32632443644

push

github

web-flow
Fix potential NREs when using AssertionScope (#3178) (#3323)

* Fix potential NREs when using AssertionScope (#3178)

Several assertion methods evaluated a member of a possibly-null subject as part of the argument to a chained ForCondition call. Outside of an AssertionScope, an earlier failure throws immediately so the chain never reaches this point. But inside an AssertionScope, execution continues, and the eager dereference throws a NullReferenceException instead of producing a proper assertion failure message.

Fixed by using null-conditional comparisons (subject?.Member == expected) instead of eager dereferences, and by making a failure message in TypeAssertions.HaveProperty lazy so it isn't evaluated when the property doesn't exist.

Affected members:
- PropertyInfoAssertions: BeVirtual, NotBeVirtual, BeWritable (both overloads), NotBeWritable, BeReadable (both overloads), NotBeReadable, Return, NotReturn
- TypeAssertions: HaveProperty, HaveIndexer

Added regression tests wrapping the affected assertions in an AssertionScope, and a releases.md entry.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Address review feedback: simplify regression test assertions, clarify release note

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

4155 of 4438 branches covered (93.62%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 2 files covered. (100.0%)

13356 of 13583 relevant lines covered (98.33%)

79642.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32632443644.1 23 Aug 2026 10:06AM UTC 351
97.17
GitHub Action Run
Source Files on build 32632443644
  • Tree
  • List 351
  • Changed 17
  • Source Changed 2
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32632443644
  • 55ce1f56 on github
  • Prev Build on main (#32590827254)
  • Next Build on main (#32644030335)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc