NUnit.WinForms 4.2611.27

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

NUnit.WinForms 🌟

Who

  • V1.x Copyright (c) 2003-2006 by Luke T. Maxon
  • V2.x Copyright (c) 2006-2010 by Luke T. Maxon and others
  • V3.x Copyright (c) 2026-onwards by Smurf-IV

When

  • As the timeline shows above, V1 → V2 was a long time ago and had nuget names like NUnitForms and NUnitforms.Framework.
  • V3 starts the NUnit.WinForms nuget package based on the above.

Why

  • I wanted a way to be able to test standalone controls (Actually for wizard pages), but could not find a way to do this without having to perform reflection on the Focus_Lost events, because of the way Dev-Ops runners work (i.e. headless)
  • I found this (I had used it in 2006 for a couple of projects) and thought it would be a good idea to modernize it and make it work with the latest NUnit TFM(s) and also fix / add some new features.

What

  • It will be a fork of the original NUnitForms project, but with a new name and a new nuget package name.
  • Support for the latest NUnit TFM(s) and also fix / add some new features.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed.  net10.0-windows7.0 is compatible.  net11.0-windows7.0 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

  • .NETFramework 4.8

  • net10.0-windows7.0

  • net11.0-windows7.0

  • net6.0-windows7.0

  • net8.0-windows7.0

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
4.2611.27 100 11/27/2026
3.2611.20-Beta 78 11/20/2026
3.2611.16-Beta 77 11/16/2026

# 2026-12-## V4.Beta

## ⛓️‍💥Breaking Changes

- Move to NUnit 4.6.1
- Change namepace from `NUnit.Extensions.Forms` to `NUnit.Winforms`

### Work done

- ✅ Investigate `Explicit` marked tests, and possible fix them (Also check `Ignore`s)
- ✅ Go through the `obsolete`s and fix (i.e. `OpenFileDialogTester.OpenFileDialogTester(string)`)
   - Legacy modal handlers now match a form’s caption when its name does not match, without changing existing name-based behavior.
- ✅ Add missing tests for:
- ✅ Create class and add tests to cover deprecated/removed controls:
   - `ContainerControlTester`
   - `ContextMenuStripTester`
   - `DataGridTester`
   - `DataGridViewTester`
   - `DateTimePickerTester`
   - `DomainUpDownTester`
   - `FlowLayoutPanelTester`
   - `GroupBoxTester`
   - `HScrollBarTester`
   - `MaskedTextBoxTester`
   - `MenuStripTester`
   - `MonthCalendarTester`
   - `NumericUpDownTester`
   - `PictureBoxTester`
   - `PrintPreviewControlTester`
   - `PrgressBarTester`
   - `PropertyGridTester`
   - `PrgressBarTester`
   - `PropertyGridTester`
   - `ScrollableControlTester`
   - `ScrollBarTester`
   - `SplitContainerTester`
   - `StatusBarTester`
   - `StatusStripTester`
   - `TableLayoutPanelTester`
   - `TabPageTester`
   - `ToolStripContainerTester`
   - `ToolStripContentPanelTester`
   - `ToolStripDropDownTester`
   - `ToolStripLabelTester`
   - `ToolStripPanelTester`
   - `ToolStripProgressBarTester`
   - `ToolStripSeparatorTester`
   - `ToolStripStatusLabelTester`
   - `ToolStripTester`
   - `TrackBarTester`
   - `UserControlTester`
   - `VScrollBarTester`
   - `WebBrowserTester`

# 2026-11-16 - V3.Beta

## ⛓️‍💥 **Breaking Change(s)**

- Recording application "Does Not Work"
- Removed `WindowSpecificSendKeyboardInput`
- Removed `SimpleAPIKeyboardWithEmulation`
- Removed `VirtualKeyCodes`
- Removed `OldSendKeys`
- Removed `SendKeys`
- `Finder<T>().Name("xx")` now returns a `KeyNotFoundException` rather than a generic `Exception` when the element is not found

### Work done

- ✅ Create Fork and add information to the README.md
- ✅ Restructure the layout of the directories within GitHub
- ✅ Fix `SendKeysParser`
- ✅ Copy SourceForge issues etc into Github [Bug] / [Feature] issues types
- ✅ Add focused (Single file) PInvoke and LoadLibrary for Win32 API(s) and use it in the codebase
- ✅ Modernize to the supported NUnit TFM(s)
   - ✅ net 4.6.2
   - ✅ net 4.8
   - ✅ net6.0 (Will be dropped in NUnit 5)
   - ✅ net8.0
   - ✅ net10.0
   - ✅ net11.0
- ✅ Fix Unit Test projects and should be able to run on all TFM(s)
   - ✅ Remove `NMock#` and replace with `FakeItEasy`
   - ✅ net 4.6.2
   - ✅ net 4.8
   - ✅ Fix mouse event usage in tests
   - ✅ net6.0 (Will be dropped in NUnit 5)
   - ✅ net8.0
   - ✅ net10.0
   - ✅ net11.0
       - Adding a smart "readiness" check, to ensure that UI controls are fully initialized before the tests try to interact with them, which was the root cause of the flakiness in .net10
- ✅ Add `ThrowHelper` and use it in the codebase
- ✅ Nuget package just for the tester.dll