Skip to content

Instantly share code, notes, and snippets.

@ilkerde
Created March 4, 2011 14:55
Show Gist options
  • Save ilkerde/854714 to your computer and use it in GitHub Desktop.
Save ilkerde/854714 to your computer and use it in GitHub Desktop.
An ordinary mspec using mfakes... however...
using Machine.Fakes;
using Machine.Specifications;
namespace MFakesTest {
public class when_using_mfakes_via_nuget_package_manager : WithSubject<Anything> {
private It should_run_fine
= () => Subject.True.ShouldBeTrue();
Because of_using_mfakes
= () => Subject.True = true;
}
public class Anything {
public bool True;
}
}
@ilkerde
Copy link
Author

ilkerde commented Mar 4, 2011

An ordinary mspec using mfakes... however...

I'm not able to compile the project. Compiler complains about not being able to resolve type and namespace "Fakes" / "WithSubject" ?!? I'm puzzled...

@ilkerde
Copy link
Author

ilkerde commented Mar 4, 2011

Thanks to @bjoernrochel the issue could be identified as target .NET runtime. It seems as if Machine.Fakes (mfakes) does not run with the client profile of .NET 4. Switching to the full profile did the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment