ArturRios.Util.Test

xUnit test support — extra assertions, environment-aware attributes, in-memory fakes and a functional web API test base.

Docs NuGet License: Attribution

The leaf of the dependency graph: a test helper has to know about everything it fakes, so this package pulls in more of the family than any other.

What you get

ComponentRole
CustomAssertExtra xUnit assertions for null and empty checks on collections and strings.
UnitFactAttribute, UnitTheoryAttribute, FunctionalFactAttribute, FunctionalTheoryAttributeTest attributes that skip tests per environment or on a condition, so one suite runs locally and in CI with different reach.
In-memory fakesRepository and scheduler doubles for tests that should not touch infrastructure.
Functional web API test baseA base class for end-to-end tests over an ASP.NET Core host, built on Microsoft.AspNetCore.Mvc.Testing.

Test names across the family follow Given / When / Then, e.g. GivenEveryPool_WhenCombined_ThenAllIsTheirConcatenationWithoutOverlap. See shared patterns.

Install

dotnet add package ArturRios.Util.Test

Family dependencies

…and transitively ArturRios.Extensions, ArturRios.Output, ArturRios.Jwt.

Third-party: xunit, Microsoft.AspNetCore.Mvc.Testing.