Reo.Core.Testing.Xunit 10.0.347

dotnet add package Reo.Core.Testing.Xunit --version 10.0.347
                    
NuGet\Install-Package Reo.Core.Testing.Xunit -Version 10.0.347
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Reo.Core.Testing.Xunit" Version="10.0.347" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Reo.Core.Testing.Xunit" Version="10.0.347" />
                    
Directory.Packages.props
<PackageReference Include="Reo.Core.Testing.Xunit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Reo.Core.Testing.Xunit --version 10.0.347
                    
#r "nuget: Reo.Core.Testing.Xunit, 10.0.347"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Reo.Core.Testing.Xunit@10.0.347
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Reo.Core.Testing.Xunit&version=10.0.347
                    
Install as a Cake Addin
#tool nuget:?package=Reo.Core.Testing.Xunit&version=10.0.347
                    
Install as a Cake Tool

Reo.Core.Testing.Xunit

Общие абстракции юнит-тестирования на базе xUnit, не требующие Docker-контейнеров:

  • BaseValidatorTests<TValidator> — базовый класс для тестирования FluentValidation-валидаторов (настройка языкового менеджера и создание валидатора через AutoMocker);
  • AutoMockerExtensions.SetupLogger — регистрация в Moq.AutoMock.AutoMocker логгеров, пишущих сообщения в ITestOutputHelper текущего теста.

Пакет является «лёгкой» альтернативой Reo.Core.IntegrationTesting для юнит-тестов: фикстуры хранилищ и контейнерная инфраструктура (Testcontainers) остаются в Reo.Core.IntegrationTesting, сюда вынесена только фреймворк-зависимая часть, нужная обычным юнит-тестам.

Использование

public class ForgotPasswordModelValidatorTests(ITestOutputHelper output)
	: BaseValidatorTests<ForgotPasswordModelValidator>(output)
{
	protected override bool UseReoLanguageManager => true;

	[Fact]
	public async Task Empty_email_should_fail_validation()
	{
		var result = await Validator.ValidateAsync(new ForgotPasswordModel());
		result.IsValid.Should().BeFalse();
	}
}
var mocker = new AutoMocker();
mocker.SetupLogger(outputHelper);
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Reo.Core.Testing.Xunit:

Package Downloads
Reo.Core.IntegrationTesting

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.347 31 9/8/2026
10.0.346 36 9/8/2026
10.0.345 40 9/8/2026