0
comment
comment
on 10/6/2013 2:45 PM
Most common .Net testing tools work in F#, but that’s not the end of the story. F# adds many more tools and techniques besides, lets take a look at a few of them: 1) Back tick methods F# lets you write method names with whitespace by escaping the name in back-ticks: let [<Fact>] ``2 + 2 should equal 4`` () =
Assert.Equal(4, 2+2)
This is also handy when writing step definitions for acceptance tests:
let [<Then>] ``I should have (.*) black jumpers in stock`` (n:int) =
let passed = (stockI[...]