NoMercy.PluginSdk.Testing 12.8.0

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

NoMercy.PluginSdk.Testing

Drive a NoMercy MediaServer plugin through a fake context, with the owner grants a test switches on and off.

Install

<PackageReference Include="NoMercy.PluginSdk.Testing" Version="12.*" />

A test

using NoMercy.PluginSdk.Testing;

[Fact]
public async Task TheStationListNeedsTheNetworkGrant()
{
    FakePluginContext context = new();
    RadioPlugin plugin = new();
    plugin.Initialize(context);

    // No grant: the call refuses the way the real server refuses.
    await Assert.ThrowsAsync<PluginRefusedException>(() => plugin.RefreshAsync());

    context.Grant("network.dial", "radio.example");

    await plugin.RefreshAsync();
}

The fakes refuse with the same PluginRefusal the server raises, so a test that passes here is a plugin that will not surprise its owner with a refusal on first run.

Docs: https://nomercy.tv/docs/nomercy-plugins

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
12.14.0 0 11/23/2026
12.13.0 59 11/19/2026
12.12.0 78 11/18/2026
12.11.0 94 11/17/2026
12.10.0 87 11/17/2026
12.9.0 130 11/14/2026
12.8.0 125 11/11/2026
12.7.0 95 11/11/2026
12.6.0 164 10/21/2026
12.5.0 109 10/16/2026
12.4.0 102 10/15/2026
12.2.0 443 9/22/2026
12.1.0 147 9/22/2026