Permalink
Browse files

Merge branch 'master' of github.com:forki/NaturalSpec

  • Loading branch information...
2 parents c9d5e1a + 8b82f66 commit f77cc3bbe95ab4e81c2a129f15e2b5d0c542e763 @forki committed Jul 31, 2012
Showing with 10 additions and 2 deletions.
  1. +1 −1 src/app/NaturalSpec/Spec.fs
  2. +9 −1 src/test/Spec.NaturalSpec/SimpleTypes.fs
@@ -13,7 +13,7 @@ type Scenario =
type Example =
class
inherit TestCaseAttribute
- new (testParams:obj[]) = { inherit TestCaseAttribute(testParams) }
+ new ([<ParamArray>] testParams:obj[]) = { inherit TestCaseAttribute(testParams) }
new (given:obj,result:obj) = { inherit TestCaseAttribute(given,result) }
new (p1:obj,p2:obj,p3:obj) = { inherit TestCaseAttribute(p1,p2,p3) }
new (parameter:obj) = { inherit TestCaseAttribute(parameter) }
@@ -23,4 +23,12 @@ let ``3 + 0 should give 3``() =
let ``Dividing by zero should fail``() =
Given 10
|> When dividing_by 0
- |> Verify
+ |> Verify
+
+[<Example(1, 2, 3, 6)>]
+let ``1 + 2 + 3 should give 6``(x, y, z, expected) =
+ Given x
+ |> When adding y
+ |> When adding z
+ |> It should equal expected
+ |> Verify

0 comments on commit f77cc3b

Please sign in to comment.