PolyType.TestCases
0.15.3-gdec65ec2a5
This is a prerelease version of PolyType.TestCases.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PolyType.TestCases --version 0.15.3-gdec65ec2a5
NuGet\Install-Package PolyType.TestCases -Version 0.15.3-gdec65ec2a5
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="PolyType.TestCases" Version="0.15.3-gdec65ec2a5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PolyType.TestCases" Version="0.15.3-gdec65ec2a5" />
<PackageReference Include="PolyType.TestCases" />
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 PolyType.TestCases --version 0.15.3-gdec65ec2a5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PolyType.TestCases, 0.15.3-gdec65ec2a5"
#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 PolyType.TestCases@0.15.3-gdec65ec2a5
#: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=PolyType.TestCases&version=0.15.3-gdec65ec2a5&prerelease
#tool nuget:?package=PolyType.TestCases&version=0.15.3-gdec65ec2a5&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PolyType consumer test cases
This package is intended for consumption by your unit test project. It presents a bunch of types that help to exhaustively test your PolyType visitors.
[Theory]
[MemberData(nameof(TestTypes.GetTestCases), MemberType = typeof(TestTypes))]
public void Roundtrip_Value<T, TProvider>(TestCase<T, TProvider> testCase)
where TProvider : IShapeable<T>
{
T value = testCase.Value;
Type type = testCase.Type;
ITypeShape<T> shape = testCase.DefaultShape;
// Exercise your code using these values...
}
There are other properties on the test case that may be helpful in knowing whether you can perform certain operations on the test case with an expectation of success.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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.
-
net8.0
- FSharp.Core (>= 8.0.401)
- PolyType (>= 0.15.3-gdec65ec2a5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on PolyType.TestCases:
Repository | Stars |
---|---|
AArnott/Nerdbank.MessagePack
A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.org[C#]
|
Version | Downloads | Last Updated |
---|---|---|
0.63.1 | 0 | 9/8/2025 |
0.62.1 | 55 | 9/7/2025 |
0.61.1 | 172 | 9/4/2025 |
0.60.1 | 181 | 9/3/2025 |
0.59.1 | 359 | 8/28/2025 |
0.58.1 | 235 | 8/27/2025 |
0.57.1 | 191 | 8/26/2025 |
0.56.1 | 175 | 8/25/2025 |
0.55.1 | 247 | 8/20/2025 |
0.54.1 | 133 | 8/16/2025 |
0.53.1 | 217 | 8/8/2025 |
0.52.1 | 221 | 8/6/2025 |
0.51.1 | 120 | 7/29/2025 |
0.50.1 | 152 | 7/26/2025 |
0.49.1 | 494 | 7/23/2025 |
0.48.1 | 398 | 7/21/2025 |
0.47.1 | 148 | 7/18/2025 |
0.46.1 | 153 | 7/16/2025 |
0.45.1 | 202 | 6/27/2025 |
0.44.1 | 172 | 6/26/2025 |
0.43.1 | 153 | 6/26/2025 |
0.42.1 | 425 | 6/10/2025 |
0.41.1 | 332 | 6/3/2025 |
0.40.1 | 296 | 5/23/2025 |
0.39.1 | 176 | 5/22/2025 |
0.38.1 | 169 | 5/20/2025 |
0.37.1 | 240 | 4/30/2025 |
0.36.1 | 242 | 4/21/2025 |
0.35.1 | 202 | 4/20/2025 |
0.34.1 | 270 | 3/31/2025 |
0.33.1 | 179 | 3/28/2025 |
0.32.1 | 493 | 3/25/2025 |
0.31.1 | 263 | 3/18/2025 |
0.30.1 | 161 | 3/14/2025 |
0.29.3 | 342 | 3/5/2025 |
0.29.1 | 260 | 3/4/2025 |
0.28.5 | 120 | 3/1/2025 |
0.28.1 | 162 | 3/1/2025 |
0.27.1 | 249 | 2/13/2025 |
0.26.5 | 247 | 2/3/2025 |
0.26.1 | 266 | 1/23/2025 |
0.25.1 | 157 | 1/19/2025 |
0.24.1 | 238 | 12/27/2024 |
0.23.1 | 424 | 12/12/2024 |
0.22.1 | 290 | 12/5/2024 |
0.21.1 | 208 | 11/26/2024 |
0.20.1 | 185 | 11/23/2024 |
0.19.3 | 124 | 11/19/2024 |
0.19.2 | 116 | 11/19/2024 |
0.19.1 | 112 | 11/19/2024 |
0.18.2 | 118 | 11/18/2024 |
0.18.1 | 174 | 11/17/2024 |
0.17.1 | 160 | 11/16/2024 |
0.16.10 | 124 | 11/15/2024 |
0.16.1 | 260 | 11/8/2024 |
0.15.3-gdec65ec2a5 | 129 | 11/7/2024 |