ToString not working properly for some properties
Bug #605432 reported by
Dale King
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Fix Released
|
High
|
Charlie Poole | ||
NUnit V2 |
Fix Released
|
Critical
|
Charlie Poole |
Bug Description
The following code:
prints the following
<equal "bar">
<equal "qux">
<and <property foo <equal "bar">> <property baz <equal "qux">>>
Only the last one is correct.
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
tags: | added: v2port |
Changed in nunit-3.0: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Charlie Poole (charlie.poole) |
milestone: | none → 2.9.5 |
Changed in nunit-3.0: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Looking through the code it appears the problem here is that Constraint.ToString does not check to see if the constaint has a builder. I believe that if builder is not null then it needs to call ToString on the builder.