-
Notifications
You must be signed in to change notification settings - Fork 339
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
Integrate AutoNSubstitute into distribution #5
Conversation
+1 |
<dependency id="nsubstitute" version="1.4" /> | ||
</dependencies> | ||
<summary>Turns AutoFixture into an Auto-Mocking Container based on NSubstitute.</summary> | ||
<description>This extension turns AutoFixture into an Auto-Mocking Container. The mock instances are created by Moq. To use it, add the AutoNSubstituteCustomization to your Fixture instance. Read more at http://blog.ploeh.dk/2010/08/19/AutoFixtureAsAnAutomockingContainer.aspx</description> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the mock instances are created by NSubstitute not Moq.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I missed that while renaming "Moq" to "NSubstitute". Actually, I was not creating something new here, but simply taken AutoFixtgure.AutoMoq as base and just adapt code to NSubstitute.
Thanks for submitting this. I'm pretty swamped at the moment, but will take a look when I get some time to do so. |
Is there an ETA when this will be included? Or are there quality problems preventing inclusion? Would it make sense to implement it myself and send another pull request? |
Nikos (moodmosaic) has pointed out various issues that need to be addressed. From the quick scan of the code I did some months back, it looks salvageable, but in need of more work. This is a pretty good example of why it's not a particular good idea to send a big pull request out of the blue :) I'd love it if someone would pick this up and fix the various issues. Perhaps it would be possible to make a fork of the fork and fix it... Right now, my personal priority is than when I have time for AutoFixture at all, I think it's more important to work on version 3. In other words: no ETA from me... |
Thanks for the quick response. |
You don't have to complete the entire feature at once - particularly not in a single commit. A Feature Toggle is an excellent way to deal with this issue, and in this particular context the Feature Toggle is easy to identify: just don't publish the new library before it's done. That's how I originally created AutoFixture.Idioms. That solution existed for a long time before it was published. |
Meanwhile, @dhilgarth ended up submitting a more idiomatic pull request for the same feature. While the present pull request precedes the one submitted by @dhilgarth the latter pull request was simply easier to accept, so I've done that. The |
Hello. I've created AutoNSubstitute project - adapter for NSubstitute mocking framework to be used with AutoFixture.
While everything is working OK there are some issues:
Thank you for attention.