About 7,820 results
Open links in new tab
  1. 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 …

  2. Getting Started with xUnit.net v2 [2025 July 4] | xUnit.net

    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), …

  3. 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.

  4. Running Tests in Parallel - xUnit.net

    It generally contains very little knowledge about how the test frameworks work, and instead relies on the xUnit.net runner utility library to do most of the heavy lifting.

  5. xUnit1049 | xUnit.net

    "Do not use 'async void' for test methods as it is no longer supported" Cause A violation of this rule occurs when an async test method returns void. Reason for rule Support for async void …

  6. xUnit1048 | xUnit.net

    "Avoid using 'async void' for test methods as it is deprecated in xUnit.net v3" Cause A violation of this rule occurs when an async test method returns void. Reason for rule Support for async …

  7. Property TestClass | xUnit.net

    TestClass Gets the current test method, if the engine is currently in the process of running a test class; will return null outside of the context of a test class.

  8. xUnit1032 | xUnit.net

    "Test classes cannot be nested within a generic class" Cause Test classes cannot be nested within a generic class. Reason for rule Generic types must be instantiated with types provided, …

  9. 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 …

  10. Property TestClass | xUnit.net

    TestClass Gets the test class that this test method belongs to.