© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
TJacken

❔ Unit testing xUnit, NSubstitute and FluentAssertion.

Hello to everybody, do you know any good blog or some resource which describe unit testing principles with xUnit and NSubstitute.

Additional questions, what is best approach to mock database?
I have DbContext should I mock what fetching data from DbContext return or I need to populate context with fake data before running test (setup).
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

[XUnit, Moq, EFCore] Unit Testing Question
C#CC# / help
4y ago
✅ Weird unit testing issue in xUnit
C#CC# / help
6mo ago
unit testing
C#CC# / help
2y ago