Data filtering attributes #1427
piotrzajac
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
@piotrzajac thank you, for the contribution to the AutoFixture community! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the AutoFixture.XUnit2.AutoMock project we have introduced a set of data filtering attributes. I wonder if it would be worth including them in AutoFixture packages - if so please let me know.
What is AutoFixture.XUnit2.AutoMock?
Yet another library of attributs connecting XUnit2, AutoFixture and one of the selected mocking library: Moq, NSubstitute or FakeItEasy.
Data filtering attributes
The following attributes helps narrowing down data generation to specific values or omitting certain values.
For these attributes to work, they must be used in conjunction with other data generation attributes.
They can be applied to simple types and collections.
Except
An attribute ensuring that values from outside the specified list will be generated.
PickFromRange
An attribute ensuring that only values from specified range will be generated.
PickFromValues
An attribute ensuring that only values from the specified list will be generated.
Beta Was this translation helpful? Give feedback.
All reactions