Skip to content

Conversation

rmunn
Copy link
Contributor

@rmunn rmunn commented Aug 19, 2020

Once a sequence option that has Max=N has hit N values, it will stop grabbing values from the command line, and any remaining values will be able to be assigned to other properties with the Value attribute.

Fixes #681.

Two unit tests had incorrect semantics, as discussed in #681, so this also changes those two tests to expect the correct behavior for sequences with Max=N. I also fixed a spelling mistake (gererates instead of generates) while I was working in the InstanceBuilderTests.cs file on one of those two unit tests.

If a sequence option (one with IEnumerable or similar type) has a Max=N
assigned, then once it has hit N values it will stop grabbing values
from the command line, and any remaining values will be able to be
assigned to other properties with the Value attribute.
@moh-hassan
Copy link
Collaborator

Thanks @rmunn for this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants