nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02678
[Bug 984040] Re: Has.Attribute error
After thinking about once again, I wundering why | (bitwise or) is used instead of || (boolean or).
Should not be the operator|| be overloaded instead of operator|?
Similar && instead of &.
--
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:
Triaged
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