YUNOVA · C# · Module 13: Professional practice

Unit testing with xUnit

Notes for offline study · 30 November 2026

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.

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.