Skip to content

Instantly share code, notes, and snippets.

@smallgeek
Created August 26, 2012 05:41
Show Gist options
  • Save smallgeek/3474653 to your computer and use it in GitHub Desktop.
Save smallgeek/3474653 to your computer and use it in GitHub Desktop.
NaturalSpec_Tutorial_1_3
[<Scenario>]
let When_calculating_fac_5_it_should_equal_120() =
Given 5
|> When calculating factorial
|> It should equal 120
|> Verify
[<Scenario>]
let When_calculating_fac_1_it_should_equal_1() =
Given 1
|> When calculating factorial
|> It should equal 1
|> Verify
[<Scenario>]
let When_calculating_fac_0_it_should_equal_0() =
Given 0
|> When calculating factorial
|> It should equal 1
|> Verify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment