O'Reilly logo

Testing with F# by Mikael Lundin

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

Testing with Visual Studio

So far, we've been talking about interactive testing with F#. This is a basic concept in starting to write qualitative code, but what this book really is about is test automation.

Visual Studio Professional comes with some basic testing tools you can use to automate testing in your solution. They are, however, not made to work with F# and need some fiddling before you could begin using them, as explained in the following steps:

  1. Create a new F# library project:
    Testing with Visual Studio
  2. Add a reference to Microsoft.VisualStudio.QualityTools.UnitTestingFramework. This will later be referred to as MSTest:
  3. Create a new F# source file in your project with ...

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