Here is a working trivial test:
module Tests
open NUnit.Framework
open FsUnit
[<TestFixture>]
type simple ()=
[<Test>] member test.
``tautology`` ()=
true |> should be True
My project doesn’t use any of F#’s OOP features yet – can I write tests without objects, or is that just how NUnit works?
FsUnit/NUnit also supports let-bounds. Here is an example from FsUnit’s official announcement:
Another example of using static functions could be found in FsUnit’s github page.