Skip to content

Convert from Moq to NSubstitute#18

Merged
tillig merged 1 commit into
developfrom
feature/moq-to-nsubstitute
May 22, 2026
Merged

Convert from Moq to NSubstitute#18
tillig merged 1 commit into
developfrom
feature/moq-to-nsubstitute

Conversation

@tillig
Copy link
Copy Markdown
Member

@tillig tillig commented May 22, 2026

Summary

  • Replace Moq with NSubstitute 5.3.0
  • Convert new Mock<T>().Object usages to Substitute.For<T>()
  • Part of cross-repo effort to standardize on NSubstitute

Test plan

  • Build succeeds locally
  • All 31 tests pass locally

Replace Moq with NSubstitute 5.3.0 for consistency across Autofac
repositories.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.24%. Comparing base (7f2f5a2) to head (c4d5087).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #18   +/-   ##
========================================
  Coverage    98.24%   98.24%           
========================================
  Files            4        4           
  Lines          114      114           
  Branches        18       18           
========================================
  Hits           112      112           
  Misses           1        1           
  Partials         1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tillig tillig merged commit 255fcb5 into develop May 22, 2026
10 checks passed
@tillig tillig deleted the feature/moq-to-nsubstitute branch May 22, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant