Skip to content

Commit

Permalink
Use Assert.Equivalent to simplify check for Values driven collection
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrzajac committed Dec 4, 2023
1 parent de20bdc commit 078bd78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ public void ValuesAttributeUsage(
[Values(DayOfWeek.Saturday, DayOfWeek.Sunday)] HashSet<DayOfWeek> weekend)
{
var weekendDays = new[] { DayOfWeek.Saturday, DayOfWeek.Sunday };
Assert.Equal(weekendDays.Length, weekend.Count);
Assert.All(weekendDays, (day) => Assert.Contains(day, weekend));
Assert.Equivalent(weekendDays, weekend);
}
```

Expand Down

0 comments on commit 078bd78

Please sign in to comment.