Opened 17 years ago

Closed 17 years ago

#374 closed defect (fixed)

MgPropertyDefinitionCollection:: Remove(MgPropertyDefinition) returns a wrong value when the collection is empty

Reported by: jiab Owned by: Trevor Wekel
Priority: medium Milestone: 2.0
Component: General Version:
Severity: minor Keywords: MgPropertyDefinitionCollection, Remove
Cc: Tom Fukushima External ID: 1014123

Description

Step to recur:

  1. Construct an instance of MgPropertyDefinitionCollection using the following code MgPropertyDefinitionCollection propDefColl = new MgPropertyDefinitionCollection();
  2. Construct an instance of MgPropertyDefinition using the following code

MgPropertyDefinition propDef = new MgPropertyDefinition("propName", MgPropertyType.Boolean);

  1. Use the method Remove(MgPropertyDefinition value)to return a bool type value.

Sample code:

Assert.IsFalse(propDefColl.Remove(propDef));

Expect result: False Actual result: True

Change History (1)

comment:1 by trevorwekel, 17 years ago

Resolution: fixed
Status: newclosed

Patch submitted by Jessica Cao

http://trac.osgeo.org/mapguide/changeset/2696

Note: See TracTickets for help on using tickets.