TestFountain 4.0.11

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

TestFountain

.NET Publish Coverage Status

TestFountain is a C# library that provides an attribute for xUnit.Net to generate random test data. It aims to simplify the process of generating diverse and comprehensive test cases by automatically creating random input values for your xUnit.Net tests.

Features

  • Random Data Generation: TestFountain allows you to easily generate random test data for your xUnit.Net tests. By using the FountainDataAttribute, you can annotate your test methods and have them automatically receive randomized input parameters.

  • Customization: You can customize the generated data by specifying the data type, range, length, and other attributes using various options provided by TestFountain.

  • Simplified Test Cases: With TestFountain, you no longer need to manually define and manage multiple test cases. It generates a wide range of test inputs automatically, allowing you to focus on writing assertions and verifying the behavior of your code.

Getting Started

Prerequisites

  • .NET 8.0 or later

Installation

You can install TestFountain via NuGet package manager or by adding a reference to your project file.

Using NuGet Package Manager
  1. Open the NuGet Package Manager Console in Visual Studio.
  2. Execute the following command:
    Install-Package TestFountain
    
Adding a Reference
  1. Right-click on your project in Visual Studio.
  2. Select "Manage NuGet Packages."
  3. Search for "TestFountain" and click on "Install."

Usage

To use TestFountain in your xUnit.Net tests, follow these steps:

  1. Annotate your test method with the RandomDataAttribute and specify the desired options:

    [Theory]
    [FountainData]
    public void MyRandomTestMethod(int randomNumber, string randomString)
    {
        // Use the random values for testing
    }
    

    In this example, randomNumber and randomString will be automatically populated with random values each time the test runs.

  2. Customize the generated data by using the available options. For example:

    [Theory]
    [FountainData(10)]
    public void MyRandomTestMethod(int randomNumber)
    {
        // Use the random integer value between 0 and 100 for testing
    }
    
  3. Run your xUnit.Net tests as usual, and TestFountain will generate random test data for your annotated test methods.

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 is compatible.  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
4.0.12 121 8/20/2025
4.0.11 117 8/19/2025
4.0.10 41 8/1/2025
4.0.9 144 6/27/2025
4.0.8 136 1/29/2025
4.0.7 120 1/28/2025
4.0.6 94 1/15/2025
4.0.5 118 1/8/2025
4.0.4 137 12/10/2024
4.0.3 119 12/9/2024
4.0.2 136 12/6/2024
4.0.1 135 12/3/2024
4.0.0 132 11/24/2024
3.0.0 134 11/23/2024
2.0.184 143 11/14/2024
2.0.183 136 11/13/2024
2.0.182 141 11/11/2024
2.0.181 130 11/8/2024
2.0.180 132 11/5/2024
2.0.179 123 11/4/2024
2.0.178 131 10/30/2024
2.0.177 129 10/29/2024
2.0.176 134 10/29/2024
2.0.175 137 10/14/2024
2.0.174 136 10/10/2024
2.0.173 140 10/9/2024
2.0.172 136 10/8/2024
2.0.171 157 10/1/2024
2.0.170 134 9/30/2024
2.0.169 133 9/27/2024
2.0.168 152 9/24/2024
2.0.167 134 9/23/2024
2.0.166 150 9/16/2024
2.0.165 149 9/9/2024
2.0.164 138 9/2/2024
2.0.163 158 8/29/2024
2.0.162 140 8/26/2024
2.0.161 153 8/23/2024
2.0.160 167 8/22/2024
2.0.159 163 8/15/2024
2.0.158 152 8/14/2024
2.0.157 156 8/13/2024
2.0.156 141 8/5/2024
2.0.155 134 8/2/2024
2.0.154 112 8/1/2024
2.0.153 108 7/31/2024
2.0.152 137 7/25/2024
2.0.151 138 7/11/2024
2.0.150 151 7/10/2024
2.0.149 149 7/9/2024
2.0.148 155 7/2/2024
2.0.147 146 6/27/2024
2.0.146 152 6/26/2024
2.0.145 158 6/25/2024
2.0.144 156 6/21/2024
2.0.143 153 6/19/2024
2.0.142 169 6/18/2024
2.0.141 144 6/17/2024
2.0.140 145 6/14/2024
2.0.139 132 6/13/2024
2.0.138 138 6/12/2024
2.0.137 150 6/1/2024
2.0.136 140 5/30/2024
2.0.135 156 5/29/2024
2.0.134 139 5/27/2024
2.0.133 145 5/16/2024
2.0.132 144 5/15/2024
2.0.131 148 5/10/2024
2.0.130 145 5/8/2024
2.0.129 152 5/7/2024
2.0.128 174 5/6/2024
2.0.127 114 5/3/2024
2.0.126 133 5/1/2024
2.0.125 154 4/30/2024
2.0.124 149 4/29/2024
2.0.123 176 4/15/2024
2.0.122 162 4/13/2024
2.0.121 163 4/11/2024
2.0.120 157 4/10/2024
2.0.119 170 4/2/2024
2.0.118 147 3/29/2024
2.0.117 138 3/28/2024
2.0.116 165 3/18/2024
2.0.115 184 3/15/2024
2.0.114 171 3/14/2024
2.0.113 160 3/13/2024
2.0.112 164 3/12/2024
2.0.111 163 3/8/2024
2.0.110 148 3/7/2024
2.0.109 152 3/7/2024
2.0.108 157 3/5/2024
2.0.107 156 3/4/2024
2.0.106 145 3/1/2024
2.0.105 148 2/29/2024
2.0.104 150 2/29/2024
2.0.103 153 2/27/2024
2.0.102 144 2/26/2024
2.0.101 165 2/23/2024
2.0.100 140 2/23/2024
2.0.99 142 2/22/2024
2.0.98 149 2/21/2024
2.0.97 157 2/20/2024
2.0.96 148 2/19/2024
2.0.95 154 2/16/2024
2.0.94 151 2/16/2024
2.0.93 153 2/15/2024
2.0.92 185 2/13/2024
2.0.91 150 2/12/2024
2.0.90 167 2/9/2024
2.0.89 154 2/8/2024
2.0.88 142 2/7/2024
2.0.87 152 2/6/2024
2.0.86 150 2/5/2024
2.0.85 142 2/2/2024
2.0.84 168 2/1/2024
2.0.83 147 2/1/2024
2.0.82 146 1/31/2024
2.0.81 140 1/29/2024
2.0.80 160 1/24/2024
2.0.79 143 1/23/2024
2.0.78 151 1/23/2024
2.0.77 149 1/19/2024
2.0.76 169 1/17/2024
2.0.75 145 1/17/2024
2.0.74 140 1/15/2024
2.0.73 149 1/12/2024
2.0.72 154 1/11/2024
2.0.71 151 1/10/2024
2.0.70 172 1/7/2024
2.0.69 189 12/27/2023
2.0.68 131 12/27/2023
2.0.67 177 12/22/2023
2.0.66 176 12/20/2023
2.0.65 169 12/15/2023
2.0.64 183 12/14/2023
2.0.63 181 12/13/2023
2.0.62 182 12/12/2023
2.0.61 187 12/12/2023
2.0.60 201 11/23/2023
2.0.59 166 11/22/2023
2.0.58 162 11/17/2023
2.0.57 163 11/16/2023
2.0.56 159 11/16/2023
2.0.55 166 11/13/2023
2.0.54 156 11/9/2023
2.0.53 170 11/7/2023
2.0.52 159 11/6/2023
2.0.51 166 11/4/2023
2.0.50 189 11/1/2023
2.0.49 173 10/30/2023
2.0.48 171 10/27/2023
2.0.47 178 10/26/2023
2.0.46 184 10/18/2023
2.0.45 195 10/14/2023
2.0.44 209 10/12/2023
2.0.43 173 10/11/2023
2.0.42 191 10/4/2023
2.0.41 200 9/25/2023
2.0.40 188 9/20/2023
2.0.39 168 9/19/2023
2.0.38 173 9/19/2023
2.0.37 186 9/14/2023
2.0.36 190 9/13/2023
2.0.35 180 9/12/2023
2.0.34 199 9/11/2023
2.0.33 198 9/11/2023
2.0.32 204 9/8/2023
2.0.31 210 9/7/2023
2.0.30 206 9/6/2023
2.0.29 209 9/5/2023
2.0.28 222 9/5/2023
2.0.27 210 9/1/2023
2.0.26 191 8/31/2023
2.0.25 232 8/30/2023
2.0.24 206 8/29/2023
2.0.23 218 8/29/2023
2.0.22 207 8/25/2023
2.0.21 232 8/24/2023
2.0.20 211 8/23/2023
2.0.19 215 8/22/2023
2.0.18 211 8/18/2023
2.0.17 211 8/17/2023
2.0.16 224 8/9/2023
2.0.15 229 8/8/2023
2.0.14 223 8/8/2023
2.0.13 252 8/7/2023
2.0.12 242 8/4/2023
2.0.11 236 8/3/2023
2.0.10 235 8/2/2023
2.0.9 219 7/28/2023
2.0.8 242 7/26/2023
2.0.7 234 7/25/2023
2.0.6 215 7/20/2023
2.0.5 222 7/20/2023
2.0.4 224 7/14/2023
2.0.3 760 1/6/2021
2.0.2 702 9/13/2020
2.0.1 754 3/25/2020
2.0.0 745 12/23/2019
1.0.5 1,009 8/23/2018
1.0.4 1,017 8/13/2018
1.0.3 1,020 8/13/2018