NXTest 0.3.0

dotnet add package NXTest --version 0.3.0
                    
NuGet\Install-Package NXTest -Version 0.3.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="NXTest" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NXTest" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="NXTest" />
                    
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 NXTest --version 0.3.0
                    
#r "nuget: NXTest, 0.3.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 NXTest@0.3.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=NXTest&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=NXTest&version=0.3.0
                    
Install as a Cake Tool

NXTest

Meta-package for the NXTest source-generated testing framework. Installing it pulls in everything you need: NXTest.Core (attributes), NXTest.Generators (compile-time test discovery), and NXTest.Runtime (the test runner).

Usage

Add the package (plus an assertion library such as xunit.v3.assert) to an executable test project. The entry point is generated for you via Microsoft.Testing.Platform, so no Program.cs is required:

<PropertyGroup>
  <OutputType>Exe</OutputType>
</PropertyGroup>
using NXTest;

public class CalculatorTests
{
    [Fact]
    public void Add_ReturnsSum() => Assert.Equal(5, 2 + 3);

    [Theory]
    [InlineData(1, 2, 3)]
    [InlineData(-1, 1, 0)]
    public void Add_Cases(int a, int b, int expected) => Assert.Equal(expected, a + b);
}

Run with dotnet test or by executing the produced test app.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 350 7/25/2026
0.2.0 319 7/22/2026
0.1.4 374 7/17/2026
0.1.3 324 7/17/2026
0.1.2 348 7/8/2026
0.1.1 336 7/8/2026