Namespace Codebelt.Extensions.Xunit
The Codebelt.Extensions.Xunit
namespace contains types that provides a uniform way of doing unit testing. The namespace relates to the Xunit.Abstractions
namespace.
Availability: .NET 9, .NET 8 and .NET Standard 2.0
Complements: xUnit: Capturing Output 🔗
Extension Methods
Type | Ext | Methods |
---|---|---|
ITestOutputHelper | ⬇️ | WriteLines |
String | ⬇️ | ReplaceLineEndings (TFM netstandard2.0) |
Classes
- InMemoryTestStore<T>
Provides a default base implementation of the ITestStore<T> interface.
- Test
Represents the base class from which all implementations of unit testing should derive.
- TestOutputHelperAccessor
Provides a default implementation of the Xunit.Abstractions.ITestOutputHelper interface.
- TestOutputHelperExtensions
Extension methods for the Xunit.Abstractions.ITestOutputHelper.
- WildcardOptions
Configuration options for Match(String, String, Action<WildcardOptions>).
Interfaces
- ITest
Represents the members needed for vanilla testing.
- ITestOutputHelperAccessor
Provides an interface for accessing the Xunit.Abstractions.ITestOutputHelper instance.
- ITestStore<T>
Represents the members needed for adding and querying a store tailored for unit testing.