Portamical.Core
1.0.3
See the version list below for details.
dotnet add package Portamical.Core --version 1.0.3
NuGet\Install-Package Portamical.Core -Version 1.0.3
<PackageReference Include="Portamical.Core" Version="1.0.3" />
<PackageVersion Include="Portamical.Core" Version="1.0.3" />
<PackageReference Include="Portamical.Core" />
paket add Portamical.Core --version 1.0.3
#r "nuget: Portamical.Core, 1.0.3"
#:package Portamical.Core@1.0.3
#addin nuget:?package=Portamical.Core&version=1.0.3
#tool nuget:?package=Portamical.Core&version=1.0.3
Portamical.Core
Portamical.Core is the framework-agnostic core of Portamical: a universal, identity-driven test data modeling framework for .NET.
Define test data once and consume it across test frameworks using adapter packages—without rewriting the data or sacrificing strong typing.
Install
dotnet add package Portamical.Core
You will typically also install a Portamical adapter package for your test framework (xUnit / MSTest / NUnit).
Example
Create reusable test data in a single place:
using static Portamical.Core.Factories.TestDataFactory;
public sealed class CalculatorCases
{
public static IEnumerable<TestData<int, int>> Add()
{
yield return CreateTestData(
definition: "adding two positive numbers",
result: "returns their sum",
arg1: 2,
arg2: 3);
yield return CreateTestData(
definition: "adding with zero",
result: "returns the other number",
arg1: 0,
arg2: 5);
}
}
Then consume via your test framework’s adapter (usage varies by framework).
Links
- GitHub: https://github.com/CsabaDu/Portamical
- Documentation: https://github.com/CsabaDu/Portamical/blob/master/README.md
- Issues: https://github.com/CsabaDu/Portamical/issues
- Migration Guide from CsabaDu.DynamicTestData.Core to Portamical.Core: https://github.com/CsabaDu/Portamical/blob/master/Portamical.Core/MIGRATION.md
License and Project Lineage
This project is licensed under the MIT License.
Portamical.Core is the continuation and successor of CsabaDu.DynamicTestData.Core (also MIT-licensed).
CsabaDu.DynamicTestData.Core is considered legacy and is no longer supported; new development happens in Portamical.
Changelog
Version 1.0.0 (2026-03-04)
- Initial release
Version 1.0.1 (2026-03-06)
Portamical.Core.Safety.EnumValidator.Defined:string paramNamechanged to not nullable type.- README.md replaced.
Version 1.0.2 (2026-03-07)
- Link of migration guide (MIGRATION.md) added to README.md.
Version 1.0.3 (2026-03-08)
- T4 Generated Code: All generated files (
TestDataFactory.generated.cs,TestData.generated.cs,TestDataReturns.generated.cs,TestDataThrows.generated.cs) include explicit#nullable enabledirective for enhanced null-safety compliance with C# nullable reference types.
Made by CsabaDu
Portamical: Test data as a domain, not an afterthought.
| 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. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Portamical.Core:
| Package | Downloads |
|---|---|
|
Portamical
Shared utilities and base classes for cross‑framework test data solutions in .NET, built on the Portamical.Core data model. |
GitHub repositories
This package is not used by any popular GitHub repositories.
- T4 Generated Code: All generated files (`TestDataFactory.generated.cs`, `TestData.generated.cs`, `TestDataReturns.generated.cs`, `TestDataThrows.generated.cs`) include explicit `#nullable enable` directive for enhanced null-safety compliance with C# nullable reference types.