Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1 KB

File metadata and controls

29 lines (19 loc) · 1 KB

Fuzzing test data builders

This repository uses Bogus as fuzzing library.

The class FuzzingTestCases is a base class for test classes with:

  • faker class initialization with random seed for each test
  • random seed logging at the end of each test execution

Demo

Eg:

// Before
var book = BookBuilder.AnEducationalBook().Costing(25).Build();

// After
var book = Fuzzer.AnEducationalBook().Costing(25).Build();

Hint

Some test may fail over executions as values are set implicit in existing builders...