nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00865
[Bug 605432] Re: ToString not working properly for some properties
** Changed in: nunit-3.0
Status: Triaged => Fix Committed
** Changed in: nunit-3.0
Assignee: (unassigned) => Charlie Poole (charlie.poole)
** Changed in: nunit-3.0
Milestone: None => 2.9.5
--
ToString not working properly for some properties
https://bugs.launchpad.net/bugs/605432
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
Status in NUnit Test Framework: Fix Committed
Status in NUnit V2 Test Framework: Fix Released
Bug description:
The following code:
Console.WriteLine(Has.Property("foo").EqualTo("bar"));
Console.WriteLine(Has.Property("foo").EqualTo("bar").And.Property("baz").EqualTo("qux"));
Console.WriteLine(Has.Property("foo").EqualTo("bar") & Has.Property("baz").EqualTo("qux"));
prints the following
<equal "bar">
<equal "qux">
<and <property foo <equal "bar">> <property baz <equal "qux">>>
Only the last one is correct.
References