On this page
NUnit Testing Framework
Overview
Qualified supports the NUnit testing framework for F#. NUnit is only available in the F# 6.0 environment. Use Fuchu for F# 4.0.
Basic Example
Solution
namespace Challenge
module Challenge =
let add a b = a + b
Tests
namespace Challenge.Tests
open NUnit.Framework
open Challenge
[<TestFixture>]
type TestClass () =
let add = Challenge.add
[<Test>]
member this.TestAddsTwoNumbers() =
Assert.AreEqual(add 1 2, 3)