question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FsUnit cannot be run

See original GitHub issue

Steps 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:closed
  • Created 10 years ago
  • Reactions:1
  • Comments:31 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
7sharp9commented, Mar 6, 2015

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 😦

0reactions
sergey-tihoncommented, Aug 5, 2015

@7sharp9 Am I right that you think that FsUnit should depend on FSharp.Core/3.1.2.5 and be build using this version of FSharp.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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found