nanoFramework.TestFramework 3.0.73

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package nanoFramework.TestFramework --version 3.0.73
                    
NuGet\Install-Package nanoFramework.TestFramework -Version 3.0.73
                    
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="nanoFramework.TestFramework" Version="3.0.73">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.TestFramework" Version="3.0.73" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.TestFramework">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 nanoFramework.TestFramework --version 3.0.73
                    
#r "nuget: nanoFramework.TestFramework, 3.0.73"
                    
#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 nanoFramework.TestFramework@3.0.73
                    
#: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=nanoFramework.TestFramework&version=3.0.73
                    
Install as a Cake Addin
#tool nuget:?package=nanoFramework.TestFramework&version=3.0.73
                    
Install as a Cake Tool

NuGet #yourfirstpr Discord

nanoFramework logo


Welcome to the .NET nanoFramework Unit Test Framework repository

Build status

Component Build Status NuGet Package
nanoframework.TestFramework Build Status NuGet

What is the .NET nanoFramework Test Framework

nanoFramework TestFramework it's a Unit Test framework dedicated to .NET nanoFramework! It has all the benefits of what you're used to when using Microsoft Test platform for .NET or XUnit or any other!

The framework includes multiple elements that are distributed in a single NuGet package!

  • nanoFramework.TestFramework which contains the attributes to decorate your code and the Assert classes to check that you're code is properly doing what's expected.
  • nanoFramework.UnitTestLauncher which is the engine launching and managing the Unit Tests.
  • nanoFramework.TestAdapter which is the Visual Studio Test platform adapter, allowing to have the test integration in Visual Studio.

The integration looks like that:

test integration

And the integration will point you up to your code for successful or failed tests:

test integration failed

Usage of .NET nanoFramework Test Framework

Simply add the nanoFramework.TestFramework nuget to your project and you're good to go!

test nuget

Once you'll build your project, the tests will be automatically discovered:

test discovered

You can then run all the tests and you'll get the result:

test success

To have more details on usage of the framework, please refer to the detailed documentation here.

Know limitations

.NET nanoFramework Test Framework is supported in Visual Studio versions 2022 and 2019, only. Visual Studio 2017 is not fully supported. Unit Tests can be run only from the VS Test console.

What you'll find in this repository

This repository contains the source of the core elements. You'll find them in sources directory. The Visual Studio project is in the root directory will open those elements.

Sample pack

You can find on our samples repo a sample pack with projects demoing how to use the Unit Test Framework.

Feedback and documentation

For documentation, providing feedback, issues and finding out how to contribute please refer to the Home repo.

Join our Discord community here.

Credits

The list of contributors to this project can be found at CONTRIBUTORS.

License

The .NET nanoFramework Test Framework is licensed under the MIT license.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behaviour in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on nanoFramework.TestFramework:

Repository Stars
nanoframework/Samples
🍬 Code samples from the nanoFramework team used in testing, proof of concepts and other explorational endeavours
nanoframework/nanoFramework.IoT.Device
📦 This repo includes .NET nanoFramework implementations for various sensors, chips, displays, hats and drivers
Version Downloads Last Updated
4.0.0-preview.45 186 11/27/2025
4.0.0-preview.44 158 9/29/2025
4.0.0-preview.43 62 9/27/2025
4.0.0-preview.42 131 9/25/2025
3.0.77 4,280 4/17/2025
3.0.75 1,045 4/2/2025
3.0.73 716 3/19/2025
3.0.69 1,073 3/10/2025
3.0.68 1,336 2/25/2025
3.0.67 940 2/6/2025
3.0.66 270 2/5/2025
3.0.60 794 2/4/2025
3.0.57 742 1/30/2025
3.0.56 162 1/30/2025
3.0.49 1,571 12/26/2024
3.0.47 1,198 11/27/2024
3.0.45 236 11/26/2024
3.0.44 226 11/26/2024
3.0.43 259 11/25/2024
3.0.42 550 11/18/2024
3.0.41 237 11/18/2024
2.1.117 171 11/18/2024
2.1.116 171 11/18/2024
2.1.113 1,997 10/15/2024
2.1.112 1,258 9/20/2024
2.1.111 657 9/12/2024
2.1.107 2,919 6/12/2024
2.1.104 1,524 5/24/2024
2.1.102 299 5/23/2024
2.1.100 995 5/17/2024
2.1.94 1,673 4/8/2024
2.1.93 1,014 3/21/2024
2.1.87 3,405 11/9/2023
2.1.85 3,619 5/17/2023
2.1.81 751 5/12/2023
2.1.79 573 5/11/2023
2.1.77 470 5/11/2023
2.1.76 561 5/10/2023
2.1.75 475 5/9/2023
2.1.74 435 5/9/2023
2.1.71 1,798 4/3/2023
2.1.66 830 4/3/2023
2.1.64 813 4/3/2023
2.1.60 1,051 3/13/2023
2.1.59 1,969 1/5/2023
2.1.55 1,047 12/22/2022
2.1.53 1,645 12/19/2022
2.1.52 563 12/15/2022
2.1.51 443 12/15/2022
2.1.50 465 12/15/2022
2.1.49 456 12/15/2022
2.1.45 436 12/15/2022
2.1.43 443 12/15/2022
2.1.41 594 12/14/2022
2.0.64 715 12/6/2022
2.0.60 1,420 10/29/2022
2.0.57 506 10/29/2022
2.0.54 627 10/28/2022
2.0.43 2,724 9/9/2022
2.0.42 831 9/1/2022
2.0.41 899 8/24/2022
1.0.209 3,548 6/6/2022
1.0.207 675 6/3/2022
1.0.205 937 5/27/2022
1.0.191 2,103 4/10/2022
1.0.189 1,009 4/1/2022
1.0.185 1,024 3/28/2022
1.0.183 915 3/18/2022
1.0.181 1,115 3/14/2022
1.0.178 1,310 2/18/2022
1.0.175 1,328 2/3/2022
1.0.173 2,177 1/28/2022
1.0.172 1,176 1/21/2022
1.0.170 1,121 1/14/2022
1.0.166 1,631 12/2/2021
1.0.163 664 12/1/2021
1.0.162 517 11/30/2021
1.0.157 2,277 9/24/2021
1.0.154 2,858 8/9/2021
1.0.150 1,058 7/16/2021
1.0.147 659 7/14/2021
1.0.146 682 7/6/2021
1.0.145 501 7/6/2021
1.0.143 679 7/2/2021
1.0.142 556 7/2/2021
1.0.141 653 6/28/2021
1.0.138 795 6/19/2021
1.0.137 524 6/19/2021
1.0.136 836 6/8/2021
1.0.132 870 6/7/2021
1.0.127 844 5/31/2021
1.0.126 557 5/31/2021
1.0.122 647 5/28/2021
1.0.121 641 5/25/2021
1.0.120 520 5/25/2021
1.0.118 603 5/24/2021
1.0.117 674 5/19/2021
1.0.114 632 5/14/2021
1.0.113 504 5/14/2021
1.0.110 729 5/5/2021
1.0.101 824 4/8/2021
1.0.100 530 4/7/2021
1.0.99 618 4/2/2021
1.0.98 689 3/24/2021
1.0.97 545 3/24/2021
1.0.95 597 3/22/2021
1.0.92 620 3/16/2021
1.0.89 590 3/14/2021
1.0.86 535 3/9/2021
1.0.84 552 3/9/2021
1.0.83 504 3/8/2021
1.0.82 551 3/7/2021
1.0.81 564 3/6/2021
1.0.80 558 3/5/2021
1.0.79 527 3/5/2021
1.0.78 552 3/5/2021
1.0.77 510 3/5/2021
1.0.76 516 3/5/2021
1.0.75 539 3/5/2021
1.0.74 556 3/4/2021
1.0.73 552 3/4/2021
1.0.72 540 3/4/2021
1.0.71 543 3/4/2021
1.0.70 541 3/4/2021
1.0.69 596 3/4/2021
1.0.68 583 3/3/2021
1.0.67 519 3/3/2021
1.0.66 546 3/3/2021
1.0.64 689 3/2/2021
1.0.63 520 3/2/2021
1.0.60 546 3/2/2021
1.0.59 558 3/1/2021
1.0.58 554 3/1/2021
1.0.56 554 3/1/2021
1.0.53 568 2/27/2021
1.0.52 591 2/27/2021
1.0.51 613 2/27/2021
1.0.50 564 2/26/2021
1.0.49 622 2/25/2021
1.0.48 541 2/25/2021
1.0.47 555 2/25/2021
1.0.26 580 2/25/2021
1.0.8 528 2/25/2021
1.0.6 500 2/25/2021