open NodaTime open FsCheck type NodaGen = static member Instant () = Arb.generate |> Gen.map (fun dt -> dt.ToUniversalTime()) |> Gen.map (fun dt -> Instant.FromDateTimeUtc dt) |> Arb.fromGen // If using NUnit... // [] let setup () = do Arb.register() |> ignore