TestFountain 4.0.14

There is a newer version of this package available.
See the version list below for details.
dotnet add package TestFountain --version 4.0.14
                    
NuGet\Install-Package TestFountain -Version 4.0.14
                    
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.14" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TestFountain" Version="4.0.14" />
                    
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.14
                    
#r "nuget: TestFountain, 4.0.14"
                    
#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.14
                    
#: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.14
                    
Install as a Cake Addin
#tool nuget:?package=TestFountain&version=4.0.14
                    
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.17 160 10/15/2025
4.0.16 161 10/13/2025
4.0.15 159 10/6/2025
4.0.14 161 9/30/2025
4.0.13 308 9/16/2025
4.0.12 165 8/20/2025
4.0.11 155 8/19/2025
4.0.10 66 8/1/2025
4.0.9 183 6/27/2025
4.0.8 175 1/29/2025
4.0.7 151 1/28/2025
4.0.6 123 1/15/2025
4.0.5 162 1/8/2025
4.0.4 182 12/10/2024
4.0.3 150 12/9/2024
4.0.2 174 12/6/2024
4.0.1 185 12/3/2024
4.0.0 180 11/24/2024
3.0.0 162 11/23/2024
2.0.184 179 11/14/2024
2.0.183 165 11/13/2024
2.0.182 163 11/11/2024
2.0.181 152 11/8/2024
2.0.180 164 11/5/2024
2.0.179 142 11/4/2024
2.0.178 157 10/30/2024
2.0.177 149 10/29/2024
2.0.176 181 10/29/2024
2.0.175 147 10/14/2024
2.0.174 187 10/10/2024
2.0.173 184 10/9/2024
2.0.172 167 10/8/2024
2.0.171 197 10/1/2024
2.0.170 152 9/30/2024
2.0.169 154 9/27/2024
2.0.168 190 9/24/2024
2.0.167 164 9/23/2024
2.0.166 183 9/16/2024
2.0.165 204 9/9/2024
2.0.164 162 9/2/2024
2.0.163 178 8/29/2024
2.0.162 186 8/26/2024
2.0.161 183 8/23/2024
2.0.160 189 8/22/2024
2.0.159 195 8/15/2024
2.0.158 169 8/14/2024
2.0.157 198 8/13/2024
2.0.156 187 8/5/2024
2.0.155 165 8/2/2024
2.0.154 157 8/1/2024
2.0.153 126 7/31/2024
2.0.152 183 7/25/2024
2.0.151 188 7/11/2024
2.0.150 183 7/10/2024
2.0.149 177 7/9/2024
2.0.148 178 7/2/2024
2.0.147 164 6/27/2024
2.0.146 174 6/26/2024
2.0.145 208 6/25/2024
2.0.144 198 6/21/2024
2.0.143 196 6/19/2024
2.0.142 207 6/18/2024
2.0.141 187 6/17/2024
2.0.140 173 6/14/2024
2.0.139 176 6/13/2024
2.0.138 179 6/12/2024
2.0.137 196 6/1/2024
2.0.136 194 5/30/2024
2.0.135 201 5/29/2024
2.0.134 181 5/27/2024
2.0.133 183 5/16/2024
2.0.132 173 5/15/2024
2.0.131 180 5/10/2024
2.0.130 178 5/8/2024
2.0.129 182 5/7/2024
2.0.128 205 5/6/2024
2.0.127 149 5/3/2024
2.0.126 164 5/1/2024
2.0.125 185 4/30/2024
2.0.124 201 4/29/2024
2.0.123 221 4/15/2024
2.0.122 206 4/13/2024
2.0.121 197 4/11/2024
2.0.120 180 4/10/2024
2.0.119 216 4/2/2024
2.0.118 186 3/29/2024
2.0.117 170 3/28/2024
2.0.116 195 3/18/2024
2.0.115 213 3/15/2024
2.0.114 194 3/14/2024
2.0.113 203 3/13/2024
2.0.112 211 3/12/2024
2.0.111 212 3/8/2024
2.0.110 183 3/7/2024
2.0.109 183 3/7/2024
2.0.108 197 3/5/2024
2.0.107 197 3/4/2024
2.0.106 169 3/1/2024
2.0.105 192 2/29/2024
2.0.104 195 2/29/2024
2.0.103 202 2/27/2024
2.0.102 173 2/26/2024
2.0.101 207 2/23/2024
2.0.100 170 2/23/2024
2.0.99 171 2/22/2024
2.0.98 181 2/21/2024
2.0.97 188 2/20/2024
2.0.96 180 2/19/2024
2.0.95 183 2/16/2024
2.0.94 185 2/16/2024
2.0.93 184 2/15/2024
2.0.92 218 2/13/2024
2.0.91 189 2/12/2024
2.0.90 213 2/9/2024
2.0.89 186 2/8/2024
2.0.88 172 2/7/2024
2.0.87 182 2/6/2024
2.0.86 170 2/5/2024
2.0.85 173 2/2/2024
2.0.84 201 2/1/2024
2.0.83 176 2/1/2024
2.0.82 198 1/31/2024
2.0.81 170 1/29/2024
2.0.80 207 1/24/2024
2.0.79 183 1/23/2024
2.0.78 171 1/23/2024
2.0.77 182 1/19/2024
2.0.76 202 1/17/2024
2.0.75 176 1/17/2024
2.0.74 170 1/15/2024
2.0.73 181 1/12/2024
2.0.72 184 1/11/2024
2.0.71 182 1/10/2024
2.0.70 205 1/7/2024
2.0.69 233 12/27/2023
2.0.68 152 12/27/2023
2.0.67 219 12/22/2023
2.0.66 222 12/20/2023
2.0.65 192 12/15/2023
2.0.64 220 12/14/2023
2.0.63 235 12/13/2023
2.0.62 218 12/12/2023
2.0.61 234 12/12/2023
2.0.60 259 11/23/2023
2.0.59 190 11/22/2023
2.0.58 200 11/17/2023
2.0.57 196 11/16/2023
2.0.56 186 11/16/2023
2.0.55 205 11/13/2023
2.0.54 175 11/9/2023
2.0.53 206 11/7/2023
2.0.52 185 11/6/2023
2.0.51 215 11/4/2023
2.0.50 229 11/1/2023
2.0.49 186 10/30/2023
2.0.48 209 10/27/2023
2.0.47 203 10/26/2023
2.0.46 213 10/18/2023
2.0.45 230 10/14/2023
2.0.44 247 10/12/2023
2.0.43 217 10/11/2023
2.0.42 219 10/4/2023
2.0.41 227 9/25/2023
2.0.40 220 9/20/2023
2.0.39 197 9/19/2023
2.0.38 188 9/19/2023
2.0.37 211 9/14/2023
2.0.36 205 9/13/2023
2.0.35 222 9/12/2023
2.0.34 242 9/11/2023
2.0.33 224 9/11/2023
2.0.32 233 9/8/2023
2.0.31 261 9/7/2023
2.0.30 228 9/6/2023
2.0.29 235 9/5/2023
2.0.28 278 9/5/2023
2.0.27 228 9/1/2023
2.0.26 219 8/31/2023
2.0.25 252 8/30/2023
2.0.24 260 8/29/2023
2.0.23 255 8/29/2023
2.0.22 241 8/25/2023
2.0.21 272 8/24/2023
2.0.20 244 8/23/2023
2.0.19 243 8/22/2023
2.0.18 255 8/18/2023
2.0.17 241 8/17/2023
2.0.16 259 8/9/2023
2.0.15 251 8/8/2023
2.0.14 245 8/8/2023
2.0.13 285 8/7/2023
2.0.12 282 8/4/2023
2.0.11 279 8/3/2023
2.0.10 266 8/2/2023
2.0.9 241 7/28/2023
2.0.8 253 7/26/2023
2.0.7 269 7/25/2023
2.0.6 248 7/20/2023
2.0.5 253 7/20/2023
2.0.4 245 7/14/2023
2.0.3 810 1/6/2021
2.0.2 756 9/13/2020
2.0.1 813 3/25/2020
2.0.0 793 12/23/2019
1.0.5 1,060 8/23/2018
1.0.4 1,082 8/13/2018
1.0.3 1,070 8/13/2018