paint-brush
Testing in C#: Property-Based Testing With Input Generatorsby@miguel-bernard
444 reads
444 reads

Testing in C#: Property-Based Testing With Input Generators

by Miguel Bernard2mJuly 6th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Testing in C#: Property-Based Testing With Input Generators. Miguel Bernard is passionate about teaching, developers' communities and everything related to.Net. The following post will try to define properties for the first and last lines of our diamond diamond test. The first property-based test reads like this:Call the DiamondGenerate() method with the provided input char c. Use the ToProperty() method to wrap it into a property object. The next property test will be written using a generator that will do just that.

Company Mentioned

Mention Thumbnail
featured image - Testing in C#: Property-Based Testing With Input Generators
Miguel Bernard HackerNoon profile picture
Miguel Bernard

Miguel Bernard

@miguel-bernard

Miguel is passionate about teaching, developers' communities and everything related to .Net.

Learn More
LEARN MORE ABOUT @MIGUEL-BERNARD'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Miguel Bernard HackerNoon profile picture
Miguel Bernard@miguel-bernard
Miguel is passionate about teaching, developers' communities and everything related to .Net.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here