FluentFuzzer 0.1.1-beta

This is a prerelease version of FluentFuzzer.
There is a newer version of this package available.
See the version list below for details.
dotnet add package FluentFuzzer --version 0.1.1-beta                
NuGet\Install-Package FluentFuzzer -Version 0.1.1-beta                
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.1-beta" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentFuzzer --version 0.1.1-beta                
#r "nuget: FluentFuzzer, 0.1.1-beta"                
#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.1-beta&prerelease

// Install FluentFuzzer as a Cake Tool
#tool nuget:?package=FluentFuzzer&version=0.1.1-beta&prerelease                

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 172 6/4/2023
0.1.4 134 6/4/2023
0.1.3 128 6/3/2023
0.1.2 141 5/23/2023
0.1.1 133 5/22/2023
0.1.1-beta 124 5/2/2023
0.1.0 168 4/30/2023
0.0.7 163 4/25/2023
0.0.6 181 4/6/2023
0.0.5 198 4/4/2023
0.0.4 187 4/4/2023
0.0.3 206 4/2/2023
0.0.2 181 3/29/2023
0.0.1 215 3/28/2023