Unit Testing with xUnit — a practical guide to C# xUnit testing with clear examples you can reuse in real projects.
C# Tutorial Series (114/121). Prefer one article? Read the complete C# tutorial.
Short description
Test domain logic fast; use WebApplicationFactory for integration tests.
xUnit tip
[Fact]
public void Add_works()
{
Assert.Equal(5, Add(2, 3));
}