Consolonia.NUnit 11.3.4-beta.1573

This is a prerelease version of Consolonia.NUnit.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Consolonia.NUnit --version 11.3.4-beta.1573
                    
NuGet\Install-Package Consolonia.NUnit -Version 11.3.4-beta.1573
                    
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.4-beta.1573" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Consolonia.NUnit" Version="11.3.4-beta.1573" />
                    
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.4-beta.1573
                    
#r "nuget: Consolonia.NUnit, 11.3.4-beta.1573"
                    
#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.4-beta.1573
                    
#: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.4-beta.1573&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Consolonia.NUnit&version=11.3.4-beta.1573&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.4-beta.1604 0 9/19/2025
11.3.4-beta.1598 0 9/19/2025
11.3.4-beta.1573 81 9/16/2025
11.3.4-beta.1547 86 9/13/2025
11.3.4-beta.1545 84 9/13/2025
11.3.4-beta.1533 84 9/13/2025
11.3.4-beta.1527 88 9/13/2025
11.3.4-beta.1499 65 9/12/2025
11.3.4-beta.1483 115 9/11/2025
11.3.4-beta.1464 116 9/9/2025
11.3.4-beta.1456 116 9/8/2025
11.3.4-beta.1452 112 9/8/2025
11.3.4-beta.1450 119 9/7/2025
11.3.4-beta.1442 90 9/6/2025
11.3.4-beta.1433 70 9/5/2025
11.3.4-beta.1425 129 9/4/2025
11.3.4-beta.1420 124 8/31/2025
11.3.4-beta.1416 122 8/31/2025
11.3.4-beta.1414 140 8/29/2025
11.3.4-beta.1408 163 8/28/2025
11.3.4-beta.1406 164 8/28/2025
11.3.4-beta.1396 164 8/28/2025
11.3.4-beta.1384 160 8/28/2025
11.3.4-beta.1374 161 8/28/2025
11.3.4-beta.1371 164 8/27/2025
11.3.4-beta.1369 163 8/27/2025
11.3.4-beta.1365 161 8/27/2025
11.3.4-beta.1359 165 8/27/2025
11.3.4-beta.1334 166 8/26/2025
11.3.4-beta.1325 186 8/26/2025
11.3.4-beta.1313 114 8/20/2025
11.2.5-beta.1305 116 8/19/2025
11.2.5-beta.1302 114 8/19/2025
11.2.5-beta.1298 117 8/18/2025
11.2.5-beta.1296 117 8/17/2025
11.2.5-beta.1294 117 8/17/2025
11.2.5-beta.1290 94 8/17/2025
11.2.5-beta.1287 89 8/17/2025
11.2.5-beta.1284 93 8/17/2025
11.2.5-beta.1278 45 8/16/2025
11.2.5-beta.1276 50 8/16/2025
11.2.5-beta.1273 52 8/16/2025
11.2.5-beta.1270 46 8/16/2025
11.2.5-beta.1264 46 8/16/2025
11.2.5-beta.1261 48 8/16/2025
11.2.5-beta.1259 52 8/16/2025
11.2.5-beta.1228 124 8/13/2025
11.2.5-beta.1221 75 8/10/2025
11.2.5-beta.1218 79 8/10/2025
11.2.5-beta.1213 73 8/10/2025
11.2.5-beta.1209 76 8/10/2025
11.2.5-beta.1207 81 8/10/2025
11.2.5-beta.1197 78 8/9/2025
11.2.5-beta.1176 120 8/3/2025
11.2.5-beta.1142 103 7/30/2025
11.2.5-beta.1102 61 7/4/2025
11.2.5-beta.1090 139 6/17/2025
11.2.5-beta.1077 126 6/3/2025
11.2.5-beta.1075 128 6/2/2025
11.2.5-beta.1065 142 4/8/2025
11.2.5-beta.1050 118 3/28/2025
11.2.5-beta.1047 120 3/27/2025
11.2.5-beta.1044 122 3/27/2025
11.2.5-beta.1026 147 3/23/2025
11.2.5-beta.1023 150 3/22/2025
11.2.5-beta.1018 140 3/22/2025
11.2.5-beta.1016 140 3/22/2025
11.2.5-beta.1008 63 3/22/2025
11.2.5-beta.1004 65 3/21/2025
11.2.5-beta.988 61 3/15/2025
11.2.5-beta.965 76 3/1/2025
11.2.5-beta.959 69 2/28/2025
11.2.3-beta.954 78 2/27/2025
11.2.3-beta.946 82 2/24/2025
11.2.3-beta.936 77 2/7/2025
11.2.3-beta.920 74 2/6/2025
11.2.3-beta.906 76 2/2/2025
11.2.3-beta.902 82 2/1/2025
11.2.3-beta.887 79 1/27/2025
11.2.3-beta.883 71 1/27/2025
11.2.3-beta.876 75 1/26/2025
11.2.3-beta.874 76 1/26/2025
11.2.3-beta.866 66 1/24/2025
11.2.3-beta.862 64 1/24/2025
11.2.3-beta.860 67 1/23/2025
11.2.3-beta.849 73 1/23/2025
11.2.3-beta.845 75 1/23/2025
11.2.3-beta.841 70 1/22/2025
11.2.3-beta.838 70 1/20/2025
11.2.3-beta.826 68 1/19/2025
11.2.3-beta.819 63 1/18/2025
11.2.3-beta.802 68 1/17/2025
11.2.3-beta.798 61 1/17/2025
11.2.3-beta.793 59 1/17/2025
11.2.3-beta.789 63 1/17/2025
11.2.3-beta.784 59 1/16/2025
11.2.1-alpha-782 60 1/16/2025
11.2.1-alpha-770 64 1/15/2025
11.2.1-alpha-764 43 1/15/2025
11.2.1-alpha-756 57 1/14/2025
11.2.1-alpha-748 73 1/10/2025
11.2.1-alpha-713 72 1/6/2025
11.2.1-alpha-711 108 1/4/2025
11.2.1-alpha-709 101 1/4/2025
11.2.1-alpha-701 101 1/4/2025
11.2.1-alpha-698 101 1/3/2025
11.2.1-alpha-678 103 1/1/2025
11.2.1-alpha-668 73 12/26/2024
11.2.1-alpha-664 76 12/26/2024
11.2.1-alpha-661 75 12/26/2024
11.2.1-alpha-652 82 12/25/2024
11.2.1-alpha-648 73 12/25/2024
11.2.1-alpha-646 79 12/25/2024
11.2.1-alpha-631 79 12/24/2024
11.2.1-alpha-626 79 12/23/2024
11.2.1-alpha-614 77 12/23/2024
11.2.1-alpha-606 82 12/21/2024
11.2.1-alpha-604 86 12/20/2024
11.2.1-alpha-598 81 12/19/2024
11.2.1-alpha-595 93 12/17/2024
11.2.1-alpha-593 87 12/17/2024
11.2.1-alpha-579 96 12/15/2024
11.2.1-alpha-577 87 12/15/2024
11.2.1-alpha-574 88 12/15/2024
11.2.1-alpha-568 83 12/15/2024
11.2.1-alpha-559 84 12/14/2024
11.2.1-alpha-547 89 12/13/2024
11.2.1-alpha-545 90 12/13/2024
11.2.1-alpha-540 89 12/13/2024
11.2.1-alpha-538 85 12/13/2024
11.2.1-alpha-523 90 12/8/2024
11.2.1-alpha-517 84 12/8/2024