ArturRios.Util.Test
xUnit test support — extra assertions, environment-aware attributes, in-memory fakes and a functional web API test base.
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
| Component | Role |
|---|---|
CustomAssert | Extra xUnit assertions for null and empty checks on collections and strings. |
UnitFactAttribute, UnitTheoryAttribute, FunctionalFactAttribute, FunctionalTheoryAttribute | Test attributes that skip tests per environment or on a condition, so one suite runs locally and in CI with different reach. |
| In-memory fakes | Repository and scheduler doubles for tests that should not touch infrastructure. |
| Functional web API test base | A 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
ArturRios.Configuration2.0.0ArturRios.Data.Relational.Core5.0.1ArturRios.Mediator2.0.1ArturRios.Util2.2.0ArturRios.Util.WebApi5.2.0
…and transitively ArturRios.Extensions, ArturRios.Output, ArturRios.Jwt.
Third-party: xunit, Microsoft.AspNetCore.Mvc.Testing.