About 83 results
Open links in new tab
  1. Home | xUnit.net

    xUnit.net is a free, open source, community-focused unit testing tool for C#, F#, and Visual Basic. xUnit.net v3 supports .NET 8.0 or later, and .NET Framework 4.7.2 or later.

  2. Getting Started with xUnit.net v3

    Getting Started with xUnit.net v3 2025 August 13 In this document, we will demonstrate getting started with xUnit.net v3 when targeting .NET 8 (or later) and/or .NET Framework 4.7.2 (or later), showing …

  3. What's New in v3? [2025 August 14] | xUnit.net

    This design was done so that third party assertion libraries did not need to create any hard dependencies on xUnit.net, as most are designed to be cross-test framework. When inspecting the …

  4. Microsoft Testing Platform (xUnit.net v3)

    Unlike our support for VSTest, our support for Microsoft Testing Platform is built natively into xUnit.net v3. If you want to rely solely on Microsoft Testing Platform support, you can remove the package …

  5. Getting Started with xUnit.net v2

    Getting Started with xUnit.net v2 2025 July 4 In this document, we will demonstrate getting started with xUnit.net v2 when targeting .NET 8 (or later) and/or .NET Framework 4.7.2 (or later), showing you …

  6. Sharing Context between Tests - xUnit.net

    It is common for unit test classes to share setup and cleanup code (often called "test context"). xUnit.net offers several methods for sharing this setup and cleanup code, depending on the scope of things to …

  7. Migrating Unit Tests from v2 to v3 [2025 April 12] | xUnit.net

    The two previous libraries (xunit.runner.reporters and xunit.runner.utility) were merged into a single library (xunit.v3.runner.utility). Most of the types in this library have retained the Xunit namespace, …

  8. Query Filter Language - xunit.net

    The way you pass a query filter depends on whether you're interacting with an xUnit.net CLI or not. If you specify more than one query filter, they run in a logical OR mode; that is, tests which may any …

  9. Core Framework v2 2.5.0 [Assertion Updates] | xUnit.net

    True (Boolean condition) in /_/src/xunit. assert /Asserts/BooleanAsserts.cs: line 87 at Examples.<>c.<Sample>b__0_0(Int32 item) in C:\Dev\repro\comparison\xunit -2.4.2 \Examples.cs: …

  10. Code Coverage with MTP [2025 May 2] | xUnit.net

    With the new Microsoft Testing Platform support (MTP) in xUnit.net v3, getting code coverage has changed when running with MTP. This document discusses how to enable code coverage for both …