O'Reilly logo

Mastering F# by Suhaib Fahad, Alfonso García-Caro Núñez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, you learned how to do different kinds of automated testing with F#. We started with one of the most popular techniques in .NET and other programming languages or platforms: unit testing. In F#, we can use some of the most widely used unit testing tools for .NET, such as NUnit, and benefit from its extensive functionality and compatibility with different IDEs. F# has some niceties on its own, such as having more informative names for tests and idiomatic syntax.

We then continued with property-based testing. This is not exclusive of F# or other functional programming languages, but the absence of a shared state makes it usually much easier to test properties of our functions for any given set of parameters. FsCheck makes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required