Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidProgramException for setups for methods on value types on mono #14

Open
vanderkleij opened this issue Oct 13, 2015 · 0 comments
Open
Labels

Comments

@vanderkleij
Copy link
Owner

When running the unit tests on mono (on linux), some unit tests fail because of an InvalidProgramException. It appears that this happens for all unit tests that contain a setup that targets a method on a value type, such as Int32.GetHashCode:

System.InvalidProgramException : Invalid IL code in Smocks.Tests.TargetMatchingTests:<Setup_AnyValueTypeTarget_MatchesAnyInstance>m__1 (Smocks.ISmocksContext): IL_0055: stloc.2

and

System.InvalidProgramException : Invalid IL code in Smocks.Tests.TargetMatchingTests/<Setup_ValueTypeTarget_MatchesOnlyEqualInstance>c__AnonStorey0:<>m__0 (Smocks.ISmocksContext): IL_0057: stloc.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant