Reo.Core.Testing.Xunit
10.0.346
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Reo.Core.Testing.Xunit --version 10.0.346
NuGet\Install-Package Reo.Core.Testing.Xunit -Version 10.0.346
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.346" />
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.346" />
<PackageReference Include="Reo.Core.Testing.Xunit" />
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.346
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Reo.Core.Testing.Xunit, 10.0.346"
#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.346
#: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.346
#tool nuget:?package=Reo.Core.Testing.Xunit&version=10.0.346
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net10.0
- FluentValidation (>= 12.1.1)
- FluentValidation.AspNetCore (>= 11.3.1)
- JetBrains.Annotations (>= 2026.2.0)
- Microsoft.Extensions.Configuration (>= 10.0.11)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Diagnostics.Testing (>= 10.9.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Logging (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Options (>= 10.0.11)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.11)
- Moq.AutoMock (= 4.0.2)
- Reo.Core.Validation (>= 10.0.346)
- stbychkov.AutoLoggerMessage (>= 1.0.17)
- Swashbuckle.AspNetCore (>= 10.2.3)
- xunit (>= 2.9.3)
- xunit.abstractions (>= 2.0.3)
- xunit.analyzers (>= 1.27.0)
- xunit.extensibility.core (>= 2.9.3)
- xunit.extensibility.execution (>= 2.9.3)
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.