← Back to team overview

nunit-core team mailing list archive

[Bug 878376] [NEW] Add 'One' to the NUnit constraint syntax

 

Public bug reported:

NUnit allows specifying constraints over IEnumerables using Has.None,
Has.Some, Has.All. It would be useful to support Has.One, which will
verify that the value only appears once in the collection. We may also
consider supporting Has.Exactly(n) as a generalizaion.

** Affects: nunit-3.0
     Importance: Medium
         Status: Triaged

** Affects: nunitv2
     Importance: Medium
         Status: Triaged

** Changed in: nunitv2
       Status: New => Triaged

** Changed in: nunitv2
   Importance: Undecided => Medium

** Changed in: nunitv2
    Milestone: None => 2.6.0

** Also affects: nunit-3.0
   Importance: Undecided
       Status: New

** Changed in: nunit-3.0
       Status: New => Triaged

** Changed in: nunit-3.0
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/878376

Title:
  Add 'One' to the NUnit constraint syntax

Status in NUnit Test Framework:
  Triaged
Status in NUnit V2 Test Framework:
  Triaged

Bug description:
  NUnit allows specifying constraints over IEnumerables using Has.None,
  Has.Some, Has.All. It would be useful to support Has.One, which will
  verify that the value only appears once in the collection. We may also
  consider supporting Has.Exactly(n) as a generalizaion.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunit-3.0/+bug/878376/+subscriptions


Follow ups

References