Skip to content

Instantly share code, notes, and snippets.

@smallgeek
Created August 26, 2012 07:23
Show Gist options
  • Select an option

  • Save smallgeek/3475611 to your computer and use it in GitHub Desktop.

Select an option

Save smallgeek/3475611 to your computer and use it in GitHub Desktop.
NaturalSpec_Tutorial_5_1
// 定義済みのシナリオ
let factorialScenario x result =
Given x
|> When calculating factorial
|> It should equal result
[<Scenario>]
let When_calculation_factorial_of_1() =
factorialScenario 1 1
|> Verify
[<Scenario>]
let When_calculation_factorial_of_10() =
factorialScenario 10 3628800
|> Verify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment