[mapguide-trac] #369:
MgClassDefinitionCollection::Remove(MgClassDefinition value)
returns a wrong value when the instance of
MgClassDefinitionCollection is empty.
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Dec 10 21:18:32 EST 2007
#369: MgClassDefinitionCollection::Remove(MgClassDefinition value) returns a
wrong value when the instance of MgClassDefinitionCollection is empty.
--------------------------+-------------------------------------------------
Reporter: jessicacao | Owner: Tom Fukushima
Type: defect | Status: new
Priority: medium | Milestone: 2.0
Component: General | Version:
Severity: major | Keywords: MgClassDefinitionCollection::Remove
External_id: 1014109 |
--------------------------+-------------------------------------------------
1. Construct an instance of MgClassDefinitionCollection using the
following code
MgClassDefinitionCollection classDefColl = new
MgClassDefinitionCollection();
2. Construct an instance of MgClassDefinition using the following code
MgClassDefinition classDef = new MgClassDefinition();
3. Use the method Remove(MgClassDefinition value) to return a bool type
value.
Sample code:
Assert.IsFalse(classDefColl.Remove(classDef));
Expect result: False
Actual result: True
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/369>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list