NUnit.WinForms
4.2611.27
dotnet add package NUnit.WinForms --version 4.2611.27
NuGet\Install-Package NUnit.WinForms -Version 4.2611.27
<PackageReference Include="NUnit.WinForms" Version="4.2611.27" />
<PackageVersion Include="NUnit.WinForms" Version="4.2611.27" />
<PackageReference Include="NUnit.WinForms" />
paket add NUnit.WinForms --version 4.2611.27
#r "nuget: NUnit.WinForms, 4.2611.27"
#:package NUnit.WinForms@4.2611.27
#addin nuget:?package=NUnit.WinForms&version=4.2611.27
#tool nuget:?package=NUnit.WinForms&version=4.2611.27
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
NUnitFormsandNUnitforms.Framework. - V3 starts the
NUnit.WinFormsnuget 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_Lostevents, 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 | Versions 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. |
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