Opened 17 years ago

Closed 17 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

Description

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 by trevorwekel, 17 years ago

Owner: changed from Tom Fukushima to trevorwekel
Status: newassigned

comment:2 by trevorwekel, 17 years ago

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