FsUnit cannot be run
See original GitHub issueSteps to reproduce:
install-package fsunit
module test.mod
open NUnit.Framework
open FsUnit
let [<Test>] smoke () = 1 |> should equal 1
Have ReSharper 7.1 installed. Rightclick test project, select ‘Run Unit Tests’:
System.MissingMethodException : Method not found: 'Void FsUnit.TopLevelOperators.should(Microsoft.FSharp.Core.FSharpFunc`2<!!0,!!1>, !!0, System.Object)'.
at test.mod.smoke()
Further testing done: downgrading NUnit to v2.6.2 from installing version 2.6.3.
Issue Analytics
- State:
- Created 10 years ago
- Reactions:1
- Comments:31 (20 by maintainers)
Top Results From Across the Web
F# .net Core cannot use FsUnit in unit test in VsCode
I've installed FsUnit in .net core using Paket on VsCode. Unfortunately I cannot get my unit test files to reference it.
Read more >FsUnit and Visual Studio 2013 “Could not load file or ...
Advertisement. The easiest way to fix it is to add bindingRedirect to the configuration file (i.e., app.config or web.config). 1. 2 · And...
Read more >Review: F# unit testing frameworks and libraries
A review of XUnit, FsUnit, Unquote, and Expecto as unit testing libraries. ... NET tooling or Visual Studio to then run those tests....
Read more >Idiomatic way to write proper F# (x)unit + fsunit tests?
I am writing some unit tests using XUnit in F# and I am wondering what is the most idiomatic way in the F#...
Read more >What is FsUnit?
FsUnit is a set of libraries that makes unit-testing with F# more enjoyable. It adds a special syntax to your favorite .NET testing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have to use assembly redirects to get it to work.
If I recompiled fsunit with a .Net 4.5 compilation (rather than .Net 3.5) then there was no issues. Im not sure why there isn’t net45 versions that just work, shouldn’t have to have an app.config whenever I want to use it 😦
@7sharp9 Am I right that you think that
FsUnit
should depend on FSharp.Core/3.1.2.5 and be build using this version ofFSharp.Core
?There is no real reason to use 4.4. The only goal is to simplify installation and binding redirects in case of
FsCheck
integration