Whatsmeow.Testing 1.0.0-rc.4

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

Whatsmeow.Testing

FakeWhatsAppClient is an IWhatsAppClient in memory, with no sidecar and no WhatsApp, for testing the code you build on Whatsmeow.Client.

  • RaiseAsync(event) runs your handlers on the client's own event pipeline, with its per-chat order, and waits for them.
  • Calls records every call your code made, and FailNext makes the next call to a member throw the exception you give.
  • UseFakeClient replaces a session declared with Whatsmeow.Extensions.Hosting, so a host under test starts no sidecar.

Hosting and testing has an example. It is pinned to the exact version of Whatsmeow.Client and Whatsmeow.Extensions.Hosting it was built with.

License: MPL-2.0.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.0-rc.4 77 11/12/2026
1.0.0-rc.2 76 11/11/2026
1.0.0-rc.1 90 11/11/2026 1.0.0-rc.1 is deprecated because it has critical bugs.