Add 'Exactly(n)' to the NUnit constraint syntax

Bug #878376 reported by Charlie Poole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit Framework
Fix Released
Medium
Charlie Poole
NUnit V2
Fix Released
Medium
Charlie Poole

Bug Description

NUnit allows specifying constraints over IEnumerables using Has.None, Has.Some, Has.All. It would be useful to support Has.Exactly(n), which will verify that the value only appears in the collection the specified number of times.

Related branches

Changed in nunitv2:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.6.0
Changed in nunit-3.0:
status: New → Triaged
importance: Undecided → Medium
Changed in nunitv2:
assignee: nobody → Charlie Poole (charlie.poole)
summary: - Add 'One' to the NUnit constraint syntax
+ Add 'Exactly(n)' to the NUnit constraint syntax
description: updated
Changed in nunitv2:
status: Triaged → Fix Committed
Changed in nunit-3.0:
milestone: none → 2.9.6
Changed in nunitv2:
status: Fix Committed → Fix Released
Changed in nunit-3.0:
status: Triaged → Fix Committed
assignee: nobody → Charlie Poole (charlie.poole)
Changed in nunit-3.0:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.