CCSWE.nanoFramework.Threading.TestFramework
1.1.127
dotnet add package CCSWE.nanoFramework.Threading.TestFramework --version 1.1.127
NuGet\Install-Package CCSWE.nanoFramework.Threading.TestFramework -Version 1.1.127
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.127" />
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.127" />
<PackageReference Include="CCSWE.nanoFramework.Threading.TestFramework" />
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.127
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CCSWE.nanoFramework.Threading.TestFramework, 1.1.127"
#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.127
#: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.127
#tool nuget:?package=CCSWE.nanoFramework.Threading.TestFramework&version=1.1.127
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
.NETnanoFramework 1.0
- CCSWE.nanoFramework.Threading (>= 1.1.127)
- nanoFramework.CoreLibrary (>= 1.17.11)
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.127 | 35 | 4/15/2026 |
| 1.1.124 | 44 | 4/15/2026 |
| 1.1.123 | 48 | 4/14/2026 |
| 1.1.122 | 89 | 4/13/2026 |
| 1.1.117 | 82 | 4/13/2026 |
| 1.1.114 | 87 | 4/10/2026 |
| 1.1.113 | 82 | 4/10/2026 |
| 1.1.112 | 88 | 4/9/2026 |
| 1.1.104 | 81 | 4/8/2026 |
| 1.1.103 | 79 | 4/8/2026 |
| 1.1.101 | 79 | 4/7/2026 |
| 1.1.100 | 85 | 4/7/2026 |
| 1.1.99 | 77 | 4/7/2026 |
| 1.1.97 | 99 | 4/2/2026 |
Loading failed