Created
March 4, 2011 14:55
-
-
Save ilkerde/854714 to your computer and use it in GitHub Desktop.
An ordinary mspec using mfakes... however...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
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
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...