DMXCore.PluginSdk.Testing 1.7.6

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

DMXCore.PluginSdk.Testing

Test host for DMX Core 100 plugins.

TestPluginHost is an in-memory IPluginHost that:

  • records what your plugin does — PublishedMessages, FiredTriggers, PlaybackCalls, StateJson, LogLines;
  • simulates host-side events — SimulateMqttMessageAsync (wildcard matching included), SimulateCueStartedAsync/SimulateCueEndedAsync, SetSetting + TriggerSettingsChangedAsync;
  • runs nothing in the background — periodic tasks registered via SchedulePeriodic are recorded and only run when you call RunPeriodicTaskAsync, so tests are deterministic.

Unit test example

var plugin = new MyPlugin();
var host = new TestPluginHost(plugin.Info);

await plugin.InitializeAsync(host, CancellationToken.None);
await host.SimulateMqttMessageAsync("my-plugin/command", "go");

Assert.AreEqual("MY-TRIGGER", host.FiredTriggers.Single());

Dev harness example

Point a console app at your plugin, initialize it against a TestPluginHost, and wire keyboard commands to the Simulate* methods — every plugin action is echoed to the console. See the DMX Core 100 example plugin for a complete interactive DevHost.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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.8.3 37 8/21/2026
1.8.2 96 8/18/2026
1.8.1 91 8/18/2026
1.7.6 104 8/17/2026
1.7.5 89 8/17/2026
1.7.4 109 8/17/2026
1.7.3 94 8/17/2026
1.7.2 89 8/17/2026
1.7.1 102 8/15/2026
1.6.1 99 8/14/2026
1.6.0 98 8/14/2026
1.5.0 152 8/14/2026
1.4.0 88 8/14/2026
1.3.0 85 8/14/2026
1.2.0 89 8/14/2026
1.1.0 141 7/26/2026
0.8.0 110 7/26/2026
0.7.0 102 7/25/2026
0.6.0 111 7/24/2026
0.5.0 105 7/24/2026