It happens that we need to create few tests for the same method using different input. In such case I was always writing few identical test methods with different names and different values inside them. You can see an example below. This code is F# but don’t be afraid, it is easy to understand! This […]
f#
F# is unable to find external types
I have got a specific problem while making some exercises from “A Functional Architecture with F#”, a great F# course by Mark Seemann. After adding a controller (Controller.fs), a file with types (Rendition.fs) and using an external type inside controller, the compiler started to say that this external type is not defined. It looks good […]
Unit tests in F# – friendly names
After few years of writing unit tests I have decided to replace MSTest framework with nUnit. There are few reasons of this. MSTest hasn’t change much since it was introduced in 2010 so it is far behind it’s competitors. It lacks of Assert.Throws. There is ExpectedException attribute but it isn’t consistent with other asserts and test coverage […]