Reo.Core.Testing.TUnit 10.0.347

dotnet add package Reo.Core.Testing.TUnit --version 10.0.347
                    
NuGet\Install-Package Reo.Core.Testing.TUnit -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.TUnit" 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.TUnit" Version="10.0.347" />
                    
Directory.Packages.props
<PackageReference Include="Reo.Core.Testing.TUnit" />
                    
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.TUnit --version 10.0.347
                    
#r "nuget: Reo.Core.Testing.TUnit, 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.TUnit@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.TUnit&version=10.0.347
                    
Install as a Cake Addin
#tool nuget:?package=Reo.Core.Testing.TUnit&version=10.0.347
                    
Install as a Cake Tool

Reo.Core.Testing.TUnit

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

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

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

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

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

	[Test]
	public async Task Empty_email_should_fail_validation()
	{
		var result = await Validator.ValidateAsync(new ForgotPasswordModel());
		result.IsValid.Should().BeFalse();
	}
}
[UsedImplicitly]
[InheritsTests]
public class PublicApiTests : BaseArchitectureTests<Marker>;
var mocker = new AutoMocker();
mocker.SetupLogger();
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.TUnit:

Package Downloads
Reo.Core.TUnitIntegrationTesting

Инфраструктура интеграционного тестирования на базе TUnit с общими Docker-контейнерами (Testcontainers) для всех тестов сборки

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.347 0 9/8/2026
10.0.346 10 9/8/2026
10.0.345 8 9/8/2026