asiftasleem / nbuilder

Automatically exported from code.google.com/p/nbuilder
0 stars 0 forks source link

ListBuilder extension method WhereRandom<T> fails when amount is equal to the list size. #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Builder<Apple>.CreateListOfSize(5)
    .WhereRandom(5)
        .Have(a => a.Type == AppleTypes.McIntosh)
    .Build();

This would cause an exception. The net effect of this would be the same as 
calling WhereAll, but should be allowed.

Original issue reported on code.google.com by kevinkuebler on 4 Jun 2009 at 9:22

GoogleCodeExporter commented 8 years ago
This issue was closed by r45.

Original comment by kevinkuebler on 4 Jun 2009 at 9:25