Learn how to upgrade your xUnit project to v3 to use new features like skip assertions, TheoryDataRow, MatrixTheoryData, and a new TestContext.
Learn how to use xUnit fixtures like IClassFixture and ICollectionFixture to share setup and context across your unit tests efficiently.
Master advanced xUnit assert methods like Throws, Raises, and IsType to create precise, reliable, and easy-to-read unit tests.
Learn xUnit basic assert methods like boolean checks, range validations, and string assertions to write clear, reliable, and maintainable unit tests.
Master xUnit Theory attributes like InlineData, MemberData, and ClassData to build powerful, parameterised unit tests with ease.
Learn how to unit test minimal API endpoint handlers in ASP.NET Core using xUnit by organising routes and handlers into separate classes.
Learn how to write xUnit tests for a class that injects services that uses ASP.NET Core dependency injection using mock and real instances.
Learn how to use Moq for mocking objects like classes and interfaces in an xUnit test project when writing unit tests for .NET and C# projects.
xUnit beginners tutorial on how to run unit testing in C# and .NET using the Fact and Theory attributes, as well as focusing on different Assert methods.
The TimeProvider abstract class can be used in xUnit unit tests to mock the time and a timer using the FakeTimeProvider in .NET 8.