TestFountain 2.0.123

dotnet add package TestFountain --version 2.0.123
NuGet\Install-Package TestFountain -Version 2.0.123
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="2.0.123" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TestFountain --version 2.0.123
#r "nuget: TestFountain, 2.0.123"
#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.
// Install TestFountain as a Cake Addin
#addin nuget:?package=TestFountain&version=2.0.123

// Install TestFountain as a Cake Tool
#tool nuget:?package=TestFountain&version=2.0.123

TestFountain

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 6

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 net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
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
2.0.123 75 4/15/2024
2.0.122 84 4/13/2024
2.0.121 69 4/11/2024
2.0.120 74 4/10/2024
2.0.119 82 4/2/2024
2.0.118 63 3/29/2024
2.0.117 67 3/28/2024
2.0.116 81 3/18/2024
2.0.115 81 3/15/2024
2.0.114 85 3/14/2024
2.0.113 80 3/13/2024
2.0.112 81 3/12/2024
2.0.111 78 3/8/2024
2.0.110 75 3/7/2024
2.0.109 82 3/7/2024
2.0.108 79 3/5/2024
2.0.107 82 3/4/2024
2.0.106 67 3/1/2024
2.0.105 69 2/29/2024
2.0.104 70 2/29/2024
2.0.103 69 2/27/2024
2.0.102 75 2/26/2024
2.0.101 82 2/23/2024
2.0.100 63 2/23/2024
2.0.99 73 2/22/2024
2.0.98 75 2/21/2024
2.0.97 81 2/20/2024
2.0.96 69 2/19/2024
2.0.95 74 2/16/2024
2.0.94 69 2/16/2024
2.0.93 75 2/15/2024
2.0.92 84 2/13/2024
2.0.91 77 2/12/2024
2.0.90 73 2/9/2024
2.0.89 85 2/8/2024
2.0.88 62 2/7/2024
2.0.87 80 2/6/2024
2.0.86 80 2/5/2024
2.0.85 73 2/2/2024
2.0.84 75 2/1/2024
2.0.83 71 2/1/2024
2.0.82 70 1/31/2024
2.0.81 73 1/29/2024
2.0.80 79 1/24/2024
2.0.79 64 1/23/2024
2.0.78 70 1/23/2024
2.0.77 75 1/19/2024
2.0.76 91 1/17/2024
2.0.75 76 1/17/2024
2.0.74 71 1/15/2024
2.0.73 79 1/12/2024
2.0.72 80 1/11/2024
2.0.71 81 1/10/2024
2.0.70 102 1/7/2024
2.0.69 92 12/27/2023
2.0.68 70 12/27/2023
2.0.67 101 12/22/2023
2.0.66 99 12/20/2023
2.0.65 99 12/15/2023
2.0.64 115 12/14/2023
2.0.63 112 12/13/2023
2.0.62 109 12/12/2023
2.0.61 115 12/12/2023
2.0.60 145 11/23/2023
2.0.59 115 11/22/2023
2.0.58 113 11/17/2023
2.0.57 101 11/16/2023
2.0.56 107 11/16/2023
2.0.55 104 11/13/2023
2.0.54 102 11/9/2023
2.0.53 106 11/7/2023
2.0.52 95 11/6/2023
2.0.51 107 11/4/2023
2.0.50 132 11/1/2023
2.0.49 103 10/30/2023
2.0.48 109 10/27/2023
2.0.47 109 10/26/2023
2.0.46 122 10/18/2023
2.0.45 127 10/14/2023
2.0.44 141 10/12/2023
2.0.43 104 10/11/2023
2.0.42 123 10/4/2023
2.0.41 121 9/25/2023
2.0.40 127 9/20/2023
2.0.39 105 9/19/2023
2.0.38 114 9/19/2023
2.0.37 118 9/14/2023
2.0.36 118 9/13/2023
2.0.35 121 9/12/2023
2.0.34 123 9/11/2023
2.0.33 128 9/11/2023
2.0.32 130 9/8/2023
2.0.31 129 9/7/2023
2.0.30 122 9/6/2023
2.0.29 137 9/5/2023
2.0.28 138 9/5/2023
2.0.27 139 9/1/2023
2.0.26 112 8/31/2023
2.0.25 155 8/30/2023
2.0.24 128 8/29/2023
2.0.23 148 8/29/2023
2.0.22 135 8/25/2023
2.0.21 135 8/24/2023
2.0.20 138 8/23/2023
2.0.19 144 8/22/2023
2.0.18 143 8/18/2023
2.0.17 137 8/17/2023
2.0.16 146 8/9/2023
2.0.15 152 8/8/2023
2.0.14 148 8/8/2023
2.0.13 172 8/7/2023
2.0.12 164 8/4/2023
2.0.11 147 8/3/2023
2.0.10 166 8/2/2023
2.0.9 144 7/28/2023
2.0.8 156 7/26/2023
2.0.7 151 7/25/2023
2.0.6 147 7/20/2023
2.0.5 148 7/20/2023
2.0.4 152 7/14/2023
2.0.3 532 1/6/2021
2.0.2 573 9/13/2020
2.0.1 615 3/25/2020
2.0.0 607 12/23/2019
1.0.5 832 8/23/2018
1.0.4 823 8/13/2018
1.0.3 839 8/13/2018