-
Notifications
You must be signed in to change notification settings - Fork 2
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
Repeat with automoq #1
Comments
Finally I did it like this: `
` My only issue now is for frozen attributes, I have to take care in the test to reset them. |
Hi @dilandau2001, sorry for the long delay on my reply, could you provide a PR for this feature? I am currently busy and will only have time to look at this mid November. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was searching for a repeat attribute and I found yours very intereseting.
The thing is it only works for Fact tests.
I am using Autofixture with Moq and a AutomoqDataAttribute so all tests are magically Moq by the test. http://blog.nikosbaxevanis.com/2012/07/31/autofixture-xunit-net-and-auto-mocking/
The thing is, Repeat attribute does not care about the autofixture and only the first run fills the inline parameters.
I have tried to modify the code so it handles this but I was not able to do it.
I think that would be a very good upgrade.
The text was updated successfully, but these errors were encountered: