YUNOVA · C# · Module 13: Professional practice
Unit testing with xUnit
Unit testing with xUnit
Key points
- xUnit marks tests with [Fact] and data-driven tests with [Theory].
- Assert methods check results, such as Assert.Equal.
- Each test gets a new class instance, so tests stay isolated.