Consolonia.NUnit 11.3.7-beta.1831

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

logo

Consolonia.NUnit

This package provides testing support for testing consolonia controls using NUnit.

Usage

To create a unit test against your consolonia application your test class should derive from ConsoloniaAppTestBase<App$gt;.

You can define the size of your console by passing size parameter to base class.

Then you can use UITest to interact with your application, and use UITest.AssertHasText() to verify the screen of text matches your expectation.

UITest.AssertHasText()

Takes one or more Regex patterns and verifies that the screen contains the text that matches the pattern.

UITest.AssertHasNoText()

Takes one or more Regex patterns and verifies that the screen does not contain the text that matches the pattern.

Example

    public class Tests : ConsoloniaAppTestBase<App>
    {
        public Tests : base(new PixelBufferSize(80, 40))
        {
        }


        [Test]
        public async Task DisplaysBasicText()
        {
            await UITest.KeyInput(Key.Tab);
            await UITest.AssertHasText("This is TextBlock");
        }
    }
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 was computed.  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
11.3.12.5 29 5/1/2026
11.3.12.4-beta.2506 26 5/1/2026
11.3.12.4-beta.2504 25 5/1/2026
11.3.12.4-beta.2503 26 5/1/2026
11.3.12.4-beta.2502 24 5/1/2026
11.3.12.4-beta.2500 24 5/1/2026
11.3.12.4-beta.2499 26 5/1/2026
11.3.12.4-beta.2498 30 4/30/2026
11.3.12.4-beta.2497 33 4/30/2026
11.3.12.4-beta.2496 29 4/30/2026
11.3.12.4-beta.2495 48 4/27/2026
11.3.12.4-beta.2494 39 4/27/2026
11.3.12.4-beta.2493 44 4/27/2026
11.3.12.4-beta.2492 42 4/26/2026
11.3.12.4-beta.2491 41 4/25/2026
11.3.12.4-beta.2490 44 4/25/2026
11.3.12.4-beta.2489 43 4/25/2026
11.3.12.4-beta.2486 52 4/25/2026
11.3.12.4-alpha.2510 36 5/1/2026
11.3.7-beta.1831 118 10/25/2025
Loading failed