Skip to main content

FSharp

As awaiting doesn't work quite the same in F#, the syntax instead looks like this:

do! check Assert.That(...).IsSomething()

So a test could look like:

member this.CheckPositive() = async {
let result = 1 + 1
do! check (Assert.That(result).IsPositive())
}