I am using FsUnit.Xunit. I am getting a failure for the following test case: [<Fact>] let ``Initialization of DFF`` () = dff Seq.empty Seq. ...
I am using FsUnit.Xunit. I am getting a failure for the following test case: [<Fact>] let ``Initialization of DFF`` () = dff Seq.empty Seq. ...
The two tests below fail, of course. But why do the error messages show two identical expected values? Is there a way of only showing one? myTest ret ...
Consider unit-testing a module defining strings of constrained length as a type for representing user names: A unit test to ensure that the functio ...
I'm trying to write custom equality constraint to compare 2 objects. open FsUnit open NUnit.Framework.Constraints type equalCompany(expected:Company ...
I am not sure how to write my test in FsUnit.Xunit. I want to check that at least one element in my list satisfies a predicate. I know how to write t ...
I am trying to test that a collection does not contain a value using FsUnit.Xunit. open FsUnit.Xunit [<Fact>] let ``simple test`` () = let x ...
I am making tests for three functions that make same thing using different ways (with NUnit and FsUnit). I want to use TestCase so I would not have to ...
I want to check if an argument passed to the constructor of a type is valid. I check it and raise an ArgumentException if not valid. I want to create ...
I'm trying to write a test for a small lib I'm writing that (essentially) just logs to the console. Is there a way to mock function like this is F#? ...
I'm trying to assert a certain exception type and message using FsUnit.Xunit. There is some throwWithMessage function that comes with FsUnit. However, ...
I'm new to f# and fsUnit and I'm wondering how to test a pattern matching statement using fsUnit. For example, if i have the following code how would ...
I'm using FsUnit 2.3.2 and I'm not happy with the failure messages. See the examples below: ... gives me the not-so-helpful message: Expected a ...
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.TopLevelOperat ...
I am trying to assert an exception using FsUnit built upon XUnit. I have taken this test from the FsUnit website: I am using Resharper 2016 to run ...
I am trying to assert that an exception was thrown. Here is a cut down piece of code that reproduces the problem: The error says that a System.Exce ...
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, FShar ...
How do I implement multiple argument generation using FsCheck? I implemented the following to support multiple argument generation: I then used th ...
How can I ignore the value of a discriminated union case in FsUnit's assert? Take for example: In my test, I want to do this: I wouldn't mind d ...
I am using Visual Studio 2013, installed FsUnit 2.2.0, which requires NUnit 3.2.1 and FSharpCore 3.1. I created a separate test project and put a test ...
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 t ...