[mapguide-trac] #374: MgPropertyDefinitionCollection::
Remove(MgPropertyDefinition) returns a wrong value when the
collection is empty
MapGuide Open Source
trac_mapguide at osgeo.org
Tue Dec 18 02:23:31 EST 2007
#374: MgPropertyDefinitionCollection:: Remove(MgPropertyDefinition) returns a
wrong value when the collection is empty
-----------------------+----------------------------------------------------
Reporter: jiab | Owner: Trevor Wekel
Type: defect | Status: new
Priority: medium | Milestone: 2.0
Component: General | Version:
Severity: minor | Keywords: MgPropertyDefinitionCollection, Remove
External_id: 1014123 |
-----------------------+----------------------------------------------------
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);
3. 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
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/374>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list