CCSWE.nanoFramework.Threading.TestFramework 1.1.148

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

Build License NuGet

CCSWE.nanoFramework.Threading.TestFramework

Helpers for managing ThreadPool state in nanoFramework unit tests. Because ThreadPool is a static singleton, tests that interact with it can leave state that affects subsequent tests. These utilities ensure the pool is reset to a known state before and after each test.

API

ThreadPoolTestHelper

// Wrap a test body so the ThreadPool is reset after it runs (even on failure)
ThreadPoolTestHelper.ExecuteAndReset(() =>
{
    ThreadPool.QueueUserWorkItem(_ => { /* ... */ }, null);
    // assertions...
});

ThreadPoolManager

// Manually reset the ThreadPool between tests
ThreadPoolManager.Reset();

Use ExecuteAndReset when a single test needs cleanup. Use ThreadPoolManager.Reset() in a test setup/teardown method when multiple tests in a class share the pool.

Product Compatible and additional computed target framework versions.
.NETnanoFramework netnano1.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in 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
1.1.148 113 8/3/2026
1.1.147 110 7/31/2026
1.1.146 106 7/31/2026
1.1.145 129 7/17/2026
1.1.144 108 7/14/2026
1.1.143 122 7/11/2026
1.1.142 118 7/1/2026
1.1.141 114 6/30/2026
1.1.140 158 6/26/2026
1.1.139 124 6/24/2026
1.1.138 109 6/24/2026
1.1.137 122 6/24/2026
1.1.136 141 6/23/2026
1.1.135 117 6/1/2026
1.1.134 125 6/1/2026
1.1.133 114 6/1/2026
1.1.130 117 5/31/2026
1.1.129 134 4/23/2026
1.1.128 122 4/23/2026
1.1.127 130 4/15/2026
Loading failed