© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
52 replies
Ken

❔ Help needed to clear database with EF between XUnit tests

I don't understand how to clear in memory database properly between tests with XUnit.

I mean, I already tried a lot of stuff to do: EnsureDeleted/Created, Manual deletion, clearing the tracker.

Probably I am missing something important here but I don't get what.
image.png
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,794Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ xUnit tests
C#CC# / help
3y ago
Xunit and database projects
C#CC# / help
17mo ago
❔ xUnit - totally isolated serial parameterized tests?
C#CC# / help
3y ago
Catastrophic failure while running xunit tests
C#CC# / help
3y ago