nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02668
[Bug 984040] [NEW] Has.Attribute error
Public bug reported:
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>());
** Affects: nunitv2
Importance: Undecided
Status: New
--
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:
New
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
Follow ups
References