NUnit
Basic Setup
Solution
namespace Challenge
module Challenge =
let add a b = a + b
namespace Challenge
module Challenge =
let add a b = a + b
Tests
namespace Challenge.Tests
open System
open NUnit.Framework
open Challenge
[<TestFixture>]
type TestClass () =
[<Test>]
member this.TestAddsTwoNumbers() =
Assert.AreEqual(Challenge.add 1 2, 3)
namespace Challenge.Tests
open System
open NUnit.Framework
open Challenge
[<TestFixture>]
type TestClass () =
[<Test>]
member this.TestAddsTwoNumbers() =
Assert.AreEqual(Challenge.add 1 2, 3)