← Back to team overview

nunit-core team mailing list archive

[Bug 984040] Re: Has.Attribute error

 

** Branch linked: lp:nunitv2

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

Title:
  Has.Attribute error

Status in NUnit V2 Test Framework:
  Fix Committed

Bug description:
  NUnit 2.5.10 with gui

  The following line does not work:
  Assert.That(GetType(), Has.Attribute<Attr1>() | Has.Attribute<Attr2>());

  Compiler gives an error like "cannot use operator | with two ResolvableConstraintExpressions".
  Would be nice if this will compile in future.

  But this works:
  Assert.That(GetType(), Has.Attribute<Attr1>().Or.Attribute<Attr2>());

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/984040/+subscriptions


References