Closed stijnmoreels closed 6 years ago
I think it's because the way it's been written it need to apply the parameter and be still left with a function it can call. There are other ways of achieving this without needing this though e.g. (fun () -> withMemoryStream xx).
And can this detail be abstracted away? Meaning, we internally wrap it in such a factory function?
Yes but it'd be a breaking change. I'm not sure how often these functions are used. I don't use them personally. It's easy to use functional code instead of them.
Hi,
Just a question: why have some test-function an unecessary
unit
value in their parameters?Example:
Is this because the
testCase
is defined as a function, and we need another input? The setup of thetestFixture
is also using this way of wrting:Thanks in advance!