NXTest 0.3.0
dotnet add package NXTest --version 0.3.0
NuGet\Install-Package NXTest -Version 0.3.0
<PackageReference Include="NXTest" Version="0.3.0" />
<PackageVersion Include="NXTest" Version="0.3.0" />
<PackageReference Include="NXTest" />
paket add NXTest --version 0.3.0
#r "nuget: NXTest, 0.3.0"
#:package NXTest@0.3.0
#addin nuget:?package=NXTest&version=0.3.0
#tool nuget:?package=NXTest&version=0.3.0
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.
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Testing.Platform.MSBuild (>= 2.3.0)
- NXTest.Core (>= 0.3.0)
- NXTest.Generators (>= 0.3.0)
- NXTest.Runtime (>= 0.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.