NEXCODE.Caffeine.Testing 2.0.9

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

Caffeine.Testing

NuGet Docs License

Testing infrastructure for Caffeine driver plugin development — base classes, mock utilities, integration test helpers.

Installation

dotnet add package Caffeine.Testing

Key Features

  • DriverTestBase — base class for driver unit tests with lifecycle management
  • Mock driver helpers for simulating device responses
  • xUnit-compatible test fixtures for integration scenarios
  • Memory-safe test utilities for high-frequency data streams

Quick Start

using Caffeine.Testing;

public class MyDriverTests : DriverTestBase
{
    [Fact]
    public async Task ReadBytesAsync_Should_ReturnData_When_DeviceConnected()
    {
        // Arrange
        var driver = CreateMockDriver("my-driver-01");

        // Act
        var buffer = new byte[4];
        var read = await driver.ReadBytesAsync("D100", buffer);

        // Assert
        Assert.Equal(4, read);
    }
}

Compatibility

  • .NET: 10.0+
  • Test framework: xUnit 2.x

License

Commercial License - NEXCODE (c) 2025-2026

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
2.1.2 0 3/10/2026
2.1.1 0 3/10/2026
2.1.0 38 3/7/2026
2.0.9 31 3/6/2026