O'Reilly logo

Get Programming with F#: A guide for .NET developers by Isaac Abraham

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

Lesson 40. Unit testing in F#

Let’s start this unit with a quick review of basic unit-testing tools and how they relate to F#. You’ll see

  • How to approach unit testing in F#
  • How to write unit tests with F# and Visual Studio
  • How to use F# DSLs for popular unit-testing libraries

40.1. Knowing when to unit test in F#

Earlier in this book, I touched briefly on unit testing and indicated that in F# you might not need as much unit testing as you have previously. This section provides an overview of what I consider different levels of unit testing, and how and where they’re appropriate in F#. This section also covers various forms of unit-testing practices, including test-driven development (TDD).

40.1.1. Unit-testing complexity

Let’s start by ...

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