Portamical 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Portamical --version 1.0.0
                    
NuGet\Install-Package Portamical -Version 1.0.0
                    
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="Portamical" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Portamical" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Portamical" />
                    
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 Portamical --version 1.0.0
                    
#r "nuget: Portamical, 1.0.0"
                    
#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 Portamical@1.0.0
                    
#: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=Portamical&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Portamical&version=1.0.0
                    
Install as a Cake Tool

Portamical

Shared utilities and base classes for cross-framework test data solutions in .NET.

Portamical provides framework-agnostic converters, assertions, and test base classes that bridge between Portamical.Core and framework-specific adapters.


Install

dotnet add package Portamical

Note: Most users should install a framework adapter instead:

  • Portamical.xUnit for xUnit v2
  • Portamical.xUnit.v3 for xUnit v3
  • Portamical.MSTest for MSTest 4
  • Portamical.NUnit for NUnit 4

What's Included

Converters

Transform test data collections into framework-consumable formats:

using Portamical.Converters;

IEnumerable<object?[]> args = testDataCollection.ToObjectArrayCollection(ArgsCode.Instance);

Assertions

Framework-agnostic assertion helpers with delegate injection:

using Portamical.Assertions;

PortamicalAssert.ThrowsDetails(
    attempt: () => MethodUnderTest(),
    expected: new ArgumentNullException("paramName"),
    catchException: Record.Exception,
    assertIsType: Assert.IsType,
    assertEquality: Assert.Equal,
    assertFail: Assert.Fail);

Test Bases

Abstract base classes for common test patterns:

using Portamical.TestBases.ObjectArrayCollection;

public class MyTestClass : TestBase
{
    protected static IEnumerable<object?[]> Args
        => Convert(dataSource.GetArgs());
}

Use Cases

Install Portamical directly if you are:

  • Building a custom test framework adapter
  • Creating shared test utilities across multiple frameworks
  • Need direct access to converters without framework-specific wrappers

For typical testing scenarios, use a framework adapter instead.


License

MIT


Changelog

Version 1.0.0 (2026-03-06)

  • Initial release

Made by CsabaDu

Portamical: Test data as a domain, not an afterthought.

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 (4)

Showing the top 4 NuGet packages that depend on Portamical:

Package Downloads
Portamical.MSTest

MSTest 4 adapter for Portamical: Universal, identity-driven test data modeling for .NET.

Portamical.xUnit_v3

xUnit v3 adapter for Portamical: Universal, identity-driven test data modeling for .NET.

Portamical.NUnit

NUnit 4 adapter for Portamical: Universal, identity-driven test data modeling for .NET.

Portamical.xUnit

xUnit v2 adapter for Portamical: Universal, identity-driven test data modeling for .NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 34 4/23/2026
2.2.0 64 4/22/2026
2.1.1 90 4/21/2026
2.1.0 82 4/20/2026
2.0.2 138 4/2/2026
2.0.1 104 3/16/2026
2.0.0 175 3/13/2026
1.0.2 119 3/8/2026
1.0.1 91 3/7/2026
1.0.0 87 3/6/2026

- Initial release