FluentFuzzer 0.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FluentFuzzer --version 0.0.2
NuGet\Install-Package FluentFuzzer -Version 0.0.2
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="FluentFuzzer" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentFuzzer --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FluentFuzzer, 0.0.2"
#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 FluentFuzzer as a Cake Addin #addin nuget:?package=FluentFuzzer&version=0.0.2 // Install FluentFuzzer as a Cake Tool #tool nuget:?package=FluentFuzzer&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FluentFuzzer Documentation
If you need fuzzing for your integration tests or unit tests, you can use FluentFuzzer and any unit tests framework, which you have used already.
How to use
- Simple example, which used NUnit framework. Parameter timeInSec set duration method execution:
public class ConstructClass
{
public string Name { get; set; }
public List<string> NameChildren { get; set; }
public int Age { get; set; }
}
[TestFixture]
public class FuzzerRunnerConstructTests
{
[Test]
public async Task FuzzerTestConstructObject()
{
await Fuzzer.Instance.RunAsync<ConstructClass>(async construction =>
{
await Task.Delay(100);
if (construction is not null)
Console.WriteLine(construction.Name + " " + construction.NameChildren?.Count + " " + construction.Age);
},
timeInSec: 300);
}
}
- There is parallel execution. Set 2 threads:
await Fuzzer.Instance
.MakeParallelExecution(2)
.RunAsync<string>(async text =>
{
await Task.Delay(100);
if (DateTime.TryParse(text, out var dt1))
{
var s = dt1.ToString("O");
var dt2 = DateTime.Parse(s, null, DateTimeStyles.RoundtripKind);
if (dt1 != dt2)
throw new Exception();
}
});
- You can write result with exeption to folder.
await Fuzzer.Instance
.MakeParallelExecution(2)
.WriteResultToFolder("C:/Result/MyFuzzing")
.RunAsync<string>(async text =>
{
await Task.Delay(100);
if (text.Contains("1"))
throw new Exception("Tests exception");
});
Product | Versions 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 was computed. 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.
-
net6.0
- No dependencies.
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 |
---|---|---|
0.1.5 | 148 | 6/4/2023 |
0.1.4 | 113 | 6/4/2023 |
0.1.3 | 112 | 6/3/2023 |
0.1.2 | 117 | 5/23/2023 |
0.1.1 | 115 | 5/22/2023 |
0.1.1-beta | 104 | 5/2/2023 |
0.1.0 | 141 | 4/30/2023 |
0.0.7 | 142 | 4/25/2023 |
0.0.6 | 162 | 4/6/2023 |
0.0.5 | 175 | 4/4/2023 |
0.0.4 | 162 | 4/4/2023 |
0.0.3 | 183 | 4/2/2023 |
0.0.2 | 162 | 3/29/2023 |
0.0.1 | 192 | 3/28/2023 |