FluentFuzzer.DataPreparation 0.0.7

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

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

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 (1)

Showing the top 1 NuGet packages that depend on FluentFuzzer.DataPreparation:

Package Downloads
FluentFuzzer

Fluent fuzzer is simple fuzzer for your projects like Api or Unit tests projects

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.5 178 6/4/2023
0.1.4 152 6/4/2023
0.1.3 137 6/3/2023
0.1.2 160 5/23/2023
0.1.1 157 5/22/2023
0.1.1-beta 133 5/2/2023
0.1.0 200 4/30/2023
0.0.7 193 4/25/2023