FluentFuzzer 0.1.5

dotnet add package FluentFuzzer --version 0.1.5
NuGet\Install-Package FluentFuzzer -Version 0.1.5
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.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentFuzzer --version 0.1.5
#r "nuget: FluentFuzzer, 0.1.5"
#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.1.5

// Install FluentFuzzer as a Cake Tool
#tool nuget:?package=FluentFuzzer&version=0.1.5

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

  1. 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);
	}
}
  1. 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();
		}
	});
  1. 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 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.

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 140 6/4/2023
0.1.4 105 6/4/2023
0.1.3 106 6/3/2023
0.1.2 111 5/23/2023
0.1.1 112 5/22/2023
0.1.1-beta 102 5/2/2023
0.1.0 134 4/30/2023
0.0.7 134 4/25/2023
0.0.6 157 4/6/2023
0.0.5 169 4/4/2023
0.0.4 156 4/4/2023
0.0.3 178 4/2/2023
0.0.2 155 3/29/2023
0.0.1 187 3/28/2023