How to properly test Exceptions with FsUnit
问题 I'm trying to figure out how to properly test exceptions with FsUnit. Official documentation states, that to test for exceptions I have to right something like this: (fun () -> failwith "BOOM!" |> ignore) |> should throw typeof<System.Exception> But, if I don't mark my test method with [<ExpectedException>] attribute it will always fail. Sounds reasonable because if we want to test for exceptions we have to add such attribute in C# + NUnit. But, as long as I've added this attribute it doesn't