fsunit Questions

3

Solved

I am looking specifically for frameworks that allow me to take advantage of unique features of the language. I am aware of FsUnit. Would you recommend something else, and why?
Safford asked 14/4, 2011 at 17:49

1

Solved

I'm using FsUnit 2.3.2 and I'm not happy with the failure messages. See the examples below: [<Test>] let ``test 1``() = [1; 3] |> should equal [1;2] ... gives me the not-so-helpful me...
Deuteranope asked 13/4, 2017 at 13:32

2

Solved

I'm trying to setup a basic FAKE F# project that can run FsUnit but I cannot figure out how to solve the Method not found: 'Void FsUnit.TopLevelOperators.should(Microsoft.FSharp.Core.FSharpFunc`2&l...
Catatonia asked 23/1, 2017 at 21:8

4

Solved

I'd like to check that a value is of a particular case of a discriminated union, without having to also check any included data. My motivation is to only test one thing with each unit test. An exa...
Tirrell asked 25/9, 2013 at 9:49

2

Solved

I have a Portable Library, for which the FSharp.Core version is 3.7.4.0. Installing (in the Unit Test project) FsUnit installs, as a dependency, FSharp.Core version 3.1.2.5. Due to this, using the...
Allin asked 21/9, 2016 at 6:30

1

Solved

I'm using Visual Studio Professional 2015 and I have version 2.0.0.0 of the NUnit Test Adapter installed. It doesn't discover any tests on building the following code: namespace SmallestDivisible...
Ekaterinburg asked 18/5, 2016 at 10:43

1

Solved

I am using FsUnit 2.1 (with NUnit 3.2) to write tests for an F# project. Here is a simple module: namespace Library1 module LibraryFunctions = let Execute f1 = f1() let Id x = x And here are m...
Ineducation asked 26/3, 2016 at 17:15

2

Solved

For some reason when passing arguments to the test via TestCase attrubute, I get the following error message about the first argument, which in this case is an array: This is not a valid constan...

2

Solved

When I run this FsUnit test with NUnit 2.6.3, let f xs = Some (List.map ((+) 2) xs) [<Test>] let test() = f [] |> should equal (Some []) I get: Result Message: Expected: <Some([...
Drink asked 2/6, 2014 at 8:2

2

Solved

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!"...
Zymometer asked 28/4, 2013 at 9:30

2

Solved

I'm a newbie to F# and I'm playing around with FParsec. I would use FParsec to generate an AST. I would like to use FsUnit to write some tests around the various parts of the parser to ensure corre...
Limen asked 14/9, 2011 at 23:52
1

© 2022 - 2024 — McMap. All rights reserved.