Opened 11 years ago

Closed 11 years ago

#344 closed defect (fixed)

MgPropertyCollection:: Remove() returns true when trying to remove a non-existing element

Reported by: jiab Owned by: trevorwekel
Priority: medium Milestone: 2.0
Component: General Version:
Severity: minor Keywords: Remove, MgPropertyCollection
Cc: External ID: 985061


Step to recur:

  1. Construct a MgPropertyCollection? object, and a MgBooleanProperty? object.
  1. Call Remove() using the MgBooleanProperty? object as argument.

Sample code:

MgPropertyCollection? props= new MgPropertyCollection?();

MgBooleanProperty? boolProp = new MgBooleanProperty?("prop1", true);

bool result = props.Remove(boolProp);

Expect result: false

Actual result: true

Change History (2)

comment:1 Changed 11 years ago by trevorwekel

Owner: changed from Tom Fukushima to trevorwekel
Status: newassigned

comment:2 Changed 11 years ago by trevorwekel

Milestone: 2.0
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.