exercism/fsharp/hello-world/HelloWorldTest.fs
2016-08-15 14:08:39 -05:00

19 lines
423 B
Forth

module HelloWorldTest
open NUnit.Framework
open HelloWorld
[<Test>]
let ``No name`` () =
Assert.That(hello None, Is.EqualTo("Hello, World!"))
[<Test>]
[<Ignore("Remove to run test")>]
let ``Sample name`` () =
Assert.That(hello (Some "Alice"), Is.EqualTo("Hello, Alice!"))
[<Test>]
[<Ignore("Remove to run test")>]
let ``Other sample name`` () =
Assert.That(hello (Some "Bob"), Is.EqualTo("Hello, Bob!"))