TestFountain 3.0.0
See the version list below for details.
dotnet add package TestFountain --version 3.0.0
NuGet\Install-Package TestFountain -Version 3.0.0
<PackageReference Include="TestFountain" Version="3.0.0" />
paket add TestFountain --version 3.0.0
#r "nuget: TestFountain, 3.0.0"
// Install TestFountain as a Cake Addin #addin nuget:?package=TestFountain&version=3.0.0 // Install TestFountain as a Cake Tool #tool nuget:?package=TestFountain&version=3.0.0
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 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
- Open the NuGet Package Manager Console in Visual Studio.
- Execute the following command:
Install-Package TestFountain
Adding a Reference
- Right-click on your project in Visual Studio.
- Select "Manage NuGet Packages."
- Search for "TestFountain" and click on "Install."
Usage
To use TestFountain in your xUnit.Net tests, follow these steps:
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
andrandomString
will be automatically populated with random values each time the test runs.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 }
Run your xUnit.Net tests as usual, and TestFountain will generate random test data for your annotated test methods.
Product | Versions 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. |
-
net8.0
- FileCurator (>= 4.1.13)
- FluentAssertions (>= 6.12.2)
- Mirage (>= 4.1.13)
- Newtonsoft.Json (>= 13.0.3)
- NSubstitute (>= 5.3.0)
- SerialBox (>= 5.0.0)
- xunit.extensibility.core (>= 2.9.2)
-
net9.0
- FileCurator (>= 4.1.13)
- FluentAssertions (>= 6.12.2)
- Mirage (>= 4.1.13)
- Newtonsoft.Json (>= 13.0.3)
- NSubstitute (>= 5.3.0)
- SerialBox (>= 5.0.0)
- xunit.extensibility.core (>= 2.9.2)
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.0 | 0 | 11/24/2024 |
3.0.0 | 36 | 11/23/2024 |
2.0.184 | 74 | 11/14/2024 |
2.0.183 | 75 | 11/13/2024 |
2.0.182 | 84 | 11/11/2024 |
2.0.181 | 73 | 11/8/2024 |
2.0.180 | 75 | 11/5/2024 |
2.0.179 | 73 | 11/4/2024 |
2.0.178 | 75 | 10/30/2024 |
2.0.177 | 75 | 10/29/2024 |
2.0.176 | 77 | 10/29/2024 |
2.0.175 | 81 | 10/14/2024 |
2.0.174 | 83 | 10/10/2024 |
2.0.173 | 83 | 10/9/2024 |
2.0.172 | 83 | 10/8/2024 |
2.0.171 | 89 | 10/1/2024 |
2.0.170 | 86 | 9/30/2024 |
2.0.169 | 87 | 9/27/2024 |
2.0.168 | 82 | 9/24/2024 |
2.0.167 | 87 | 9/23/2024 |
2.0.166 | 100 | 9/16/2024 |
2.0.165 | 97 | 9/9/2024 |
2.0.164 | 96 | 9/2/2024 |
2.0.163 | 104 | 8/29/2024 |
2.0.162 | 90 | 8/26/2024 |
2.0.161 | 110 | 8/23/2024 |
2.0.160 | 120 | 8/22/2024 |
2.0.159 | 115 | 8/15/2024 |
2.0.158 | 108 | 8/14/2024 |
2.0.157 | 106 | 8/13/2024 |
2.0.156 | 95 | 8/5/2024 |
2.0.155 | 89 | 8/2/2024 |
2.0.154 | 65 | 8/1/2024 |
2.0.153 | 64 | 7/31/2024 |
2.0.152 | 83 | 7/25/2024 |
2.0.151 | 87 | 7/11/2024 |
2.0.150 | 110 | 7/10/2024 |
2.0.149 | 102 | 7/9/2024 |
2.0.148 | 112 | 7/2/2024 |
2.0.147 | 101 | 6/27/2024 |
2.0.146 | 104 | 6/26/2024 |
2.0.145 | 101 | 6/25/2024 |
2.0.144 | 106 | 6/21/2024 |
2.0.143 | 102 | 6/19/2024 |
2.0.142 | 124 | 6/18/2024 |
2.0.141 | 91 | 6/17/2024 |
2.0.140 | 98 | 6/14/2024 |
2.0.139 | 86 | 6/13/2024 |
2.0.138 | 86 | 6/12/2024 |
2.0.137 | 99 | 6/1/2024 |
2.0.136 | 93 | 5/30/2024 |
2.0.135 | 106 | 5/29/2024 |
2.0.134 | 88 | 5/27/2024 |
2.0.133 | 99 | 5/16/2024 |
2.0.132 | 96 | 5/15/2024 |
2.0.131 | 101 | 5/10/2024 |
2.0.130 | 101 | 5/8/2024 |
2.0.129 | 101 | 5/7/2024 |
2.0.128 | 132 | 5/6/2024 |
2.0.127 | 67 | 5/3/2024 |
2.0.126 | 85 | 5/1/2024 |
2.0.125 | 104 | 4/30/2024 |
2.0.124 | 105 | 4/29/2024 |
2.0.123 | 127 | 4/15/2024 |
2.0.122 | 114 | 4/13/2024 |
2.0.121 | 123 | 4/11/2024 |
2.0.120 | 108 | 4/10/2024 |
2.0.119 | 129 | 4/2/2024 |
2.0.118 | 102 | 3/29/2024 |
2.0.117 | 98 | 3/28/2024 |
2.0.116 | 118 | 3/18/2024 |
2.0.115 | 143 | 3/15/2024 |
2.0.114 | 128 | 3/14/2024 |
2.0.113 | 112 | 3/13/2024 |
2.0.112 | 120 | 3/12/2024 |
2.0.111 | 124 | 3/8/2024 |
2.0.110 | 104 | 3/7/2024 |
2.0.109 | 111 | 3/7/2024 |
2.0.108 | 111 | 3/5/2024 |
2.0.107 | 112 | 3/4/2024 |
2.0.106 | 101 | 3/1/2024 |
2.0.105 | 100 | 2/29/2024 |
2.0.104 | 104 | 2/29/2024 |
2.0.103 | 101 | 2/27/2024 |
2.0.102 | 106 | 2/26/2024 |
2.0.101 | 114 | 2/23/2024 |
2.0.100 | 93 | 2/23/2024 |
2.0.99 | 103 | 2/22/2024 |
2.0.98 | 106 | 2/21/2024 |
2.0.97 | 115 | 2/20/2024 |
2.0.96 | 101 | 2/19/2024 |
2.0.95 | 111 | 2/16/2024 |
2.0.94 | 104 | 2/16/2024 |
2.0.93 | 105 | 2/15/2024 |
2.0.92 | 141 | 2/13/2024 |
2.0.91 | 109 | 2/12/2024 |
2.0.90 | 113 | 2/9/2024 |
2.0.89 | 115 | 2/8/2024 |
2.0.88 | 102 | 2/7/2024 |
2.0.87 | 113 | 2/6/2024 |
2.0.86 | 113 | 2/5/2024 |
2.0.85 | 107 | 2/2/2024 |
2.0.84 | 111 | 2/1/2024 |
2.0.83 | 109 | 2/1/2024 |
2.0.82 | 98 | 1/31/2024 |
2.0.81 | 102 | 1/29/2024 |
2.0.80 | 108 | 1/24/2024 |
2.0.79 | 101 | 1/23/2024 |
2.0.78 | 110 | 1/23/2024 |
2.0.77 | 114 | 1/19/2024 |
2.0.76 | 122 | 1/17/2024 |
2.0.75 | 108 | 1/17/2024 |
2.0.74 | 104 | 1/15/2024 |
2.0.73 | 112 | 1/12/2024 |
2.0.72 | 115 | 1/11/2024 |
2.0.71 | 112 | 1/10/2024 |
2.0.70 | 130 | 1/7/2024 |
2.0.69 | 152 | 12/27/2023 |
2.0.68 | 98 | 12/27/2023 |
2.0.67 | 130 | 12/22/2023 |
2.0.66 | 128 | 12/20/2023 |
2.0.65 | 130 | 12/15/2023 |
2.0.64 | 141 | 12/14/2023 |
2.0.63 | 140 | 12/13/2023 |
2.0.62 | 142 | 12/12/2023 |
2.0.61 | 149 | 12/12/2023 |
2.0.60 | 172 | 11/23/2023 |
2.0.59 | 144 | 11/22/2023 |
2.0.58 | 139 | 11/17/2023 |
2.0.57 | 128 | 11/16/2023 |
2.0.56 | 134 | 11/16/2023 |
2.0.55 | 132 | 11/13/2023 |
2.0.54 | 130 | 11/9/2023 |
2.0.53 | 135 | 11/7/2023 |
2.0.52 | 130 | 11/6/2023 |
2.0.51 | 136 | 11/4/2023 |
2.0.50 | 159 | 11/1/2023 |
2.0.49 | 142 | 10/30/2023 |
2.0.48 | 143 | 10/27/2023 |
2.0.47 | 142 | 10/26/2023 |
2.0.46 | 153 | 10/18/2023 |
2.0.45 | 156 | 10/14/2023 |
2.0.44 | 171 | 10/12/2023 |
2.0.43 | 134 | 10/11/2023 |
2.0.42 | 152 | 10/4/2023 |
2.0.41 | 153 | 9/25/2023 |
2.0.40 | 154 | 9/20/2023 |
2.0.39 | 133 | 9/19/2023 |
2.0.38 | 144 | 9/19/2023 |
2.0.37 | 150 | 9/14/2023 |
2.0.36 | 157 | 9/13/2023 |
2.0.35 | 137 | 9/12/2023 |
2.0.34 | 157 | 9/11/2023 |
2.0.33 | 157 | 9/11/2023 |
2.0.32 | 159 | 9/8/2023 |
2.0.31 | 164 | 9/7/2023 |
2.0.30 | 153 | 9/6/2023 |
2.0.29 | 170 | 9/5/2023 |
2.0.28 | 170 | 9/5/2023 |
2.0.27 | 169 | 9/1/2023 |
2.0.26 | 146 | 8/31/2023 |
2.0.25 | 189 | 8/30/2023 |
2.0.24 | 154 | 8/29/2023 |
2.0.23 | 180 | 8/29/2023 |
2.0.22 | 162 | 8/25/2023 |
2.0.21 | 188 | 8/24/2023 |
2.0.20 | 164 | 8/23/2023 |
2.0.19 | 173 | 8/22/2023 |
2.0.18 | 166 | 8/18/2023 |
2.0.17 | 164 | 8/17/2023 |
2.0.16 | 177 | 8/9/2023 |
2.0.15 | 177 | 8/8/2023 |
2.0.14 | 177 | 8/8/2023 |
2.0.13 | 203 | 8/7/2023 |
2.0.12 | 184 | 8/4/2023 |
2.0.11 | 187 | 8/3/2023 |
2.0.10 | 190 | 8/2/2023 |
2.0.9 | 172 | 7/28/2023 |
2.0.8 | 198 | 7/26/2023 |
2.0.7 | 179 | 7/25/2023 |
2.0.6 | 161 | 7/20/2023 |
2.0.5 | 174 | 7/20/2023 |
2.0.4 | 177 | 7/14/2023 |
2.0.3 | 573 | 1/6/2021 |
2.0.2 | 604 | 9/13/2020 |
2.0.1 | 641 | 3/25/2020 |
2.0.0 | 637 | 12/23/2019 |
1.0.5 | 872 | 8/23/2018 |
1.0.4 | 878 | 8/13/2018 |
1.0.3 | 888 | 8/13/2018 |