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

justin-millman / Kvasir / 5851953343
98%

Build:
DEFAULT BRANCH: master
Ran 14 Aug 2023 04:49AM UTC
Jobs 2
Files 94
Run time 3s
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

pending completion
5851953343

push

github

justin-millman
Replace Moq with NSubstitute

There's some controversy surrounding Moq right now: basically, one of the principal maintainers added a dependency to a
different, not-quite-open-source project, and it appears that the dependency does some e-mail address scraping. The
community is unhapppy; see https://github.com/moq/moq/issues?q=SponsorLink for a BUNCH of issues on Moq's GitHub page
related to this.

I'm not 100% sure if the new dependency (SponsorLink) is an issue or not, but I'm a little uncomfortable upgrading. So
instead, like many, I'm replacing Moq with NSusbtitute. Turns out, NSubstitute is a better mocking framework anyway!
It's a lot more intuitive to use, and it has built-in support for call sequences (allowing me to delete my home-baked
version needed for Moq). All the tests transitioned fairly easily, though NSubstitute does have issues mocking e.g.
object.Equals(object), so the IsSameSequence matcher tests had to be tweaked slightly.

2713 of 2782 branches covered (97.52%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

3817 of 3836 relevant lines covered (99.5%)

1766.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Release - 5851953343.1 14 Aug 2023 04:49AM UTC 0
98.96
GitHub Action Run
2 Debug - 5851953343.2 14 Aug 2023 04:49AM UTC 0
98.75
GitHub Action Run
Source Files on build 5851953343
Detailed source file information is not available for this build.
  • Back to Repo
  • bf15b4db on github
  • Prev Build on master (#5803909965)
  • Next Build on master (#6132591206)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc