Verso.Testing 1.0.10

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

Verso.Testing

Test stubs and fakes for building and testing Verso extensions.

Overview

Provides stub and fake implementations of the Verso engine interfaces so you can unit test your extensions without running a full notebook session. All stubs accumulate outputs in list properties for easy assertion.

Stubs

Class Implements Description
StubExecutionContext IExecutionContext Kernel execution testing with WrittenOutputs, DisplayedOutputs, UpdatedOutputs
StubMagicCommandContext IMagicCommandContext Magic command testing with RemainingCode and SuppressExecution
StubFormatterContext IFormatterContext Data formatter testing with configurable dimensions and MIME type
StubCellRenderContext ICellRenderContext Cell renderer testing with configurable cell metadata and selection state
StubToolbarActionContext IToolbarActionContext Toolbar action testing with SelectedCellIds and DownloadedFiles
StubVersoContext IVersoContext Base context for extensions needing only IVersoContext
StubNotebookOperations INotebookOperations Records all notebook operations for assertion (ExecutedCellIds, InsertedCells, RemovedCellIds, etc.)

Fakes

Class Implements Description
FakeExtension IExtension Bare extension with settable properties and load/unload tracking
FakeLanguageKernel ILanguageKernel Configurable kernel with injectable execution behavior
FakeDataFormatter IDataFormatter String formatter with load/unload tracking
FakeCellRenderer ICellRenderer Pass-through renderer with load/unload tracking
FakeCellInteractionHandler IDataFormatter, ICellInteractionHandler Dual-interface fake for testing bidirectional cell interactions

Installation

dotnet add package Verso.Testing

Usage

using Verso.Testing.Stubs;

[TestMethod]
public async Task MyKernel_ExecutesCode()
{
    var context = new StubExecutionContext();
    var kernel = new MyLanguageKernel();

    var outputs = await kernel.ExecuteAsync("1 + 1", context);

    Assert.AreEqual(1, outputs.Count);
    Assert.AreEqual("2", outputs[0].Content);
}

See the testing extensions guide for full documentation.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.0.10 33 3/19/2026
1.0.9 83 3/14/2026
1.0.8 83 3/7/2026
1.0.7 77 3/6/2026
1.0.6 79 3/4/2026
1.0.5 86 2/28/2026
1.0.4 90 2/23/2026
1.0.3 89 2/22/2026
1.0.2 86 2/21/2026
1.0.1 86 2/21/2026
1.0.0 91 2/20/2026