Opened 17 years ago
Closed 17 years ago
#369 closed defect (fixed)
This ticket contains 5 Defects ID: 1014109,1014117,1014118,1014123,985011. All of the five defects are related to the Remove method. They have the same problem and could be fixed using a same way.
Reported by: | jessicacao | Owned by: | Tom Fukushima |
---|---|---|---|
Priority: | medium | Milestone: | 2.0 |
Component: | General | Version: | |
Severity: | major | Keywords: | Remove |
Cc: | Trevor Wekel | External ID: | 1014109,1014117,1014118,1014123,985011 |
Description
- Construct an instance of MgClassDefinitionCollection using the following code
MgClassDefinitionCollection classDefColl = new MgClassDefinitionCollection();
- Construct an instance of MgClassDefinition using the following code
MgClassDefinition classDef = new MgClassDefinition();
- 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
Change History (5)
comment:1 by , 17 years ago
Owner: | changed from | to
---|
comment:2 by , 17 years ago
Keywords: | Remove added; MgClassDefinitionCollection::Remove removed |
---|---|
Summary: | MgClassDefinitionCollection::Remove(MgClassDefinition value) returns a wrong value when the instance of MgClassDefinitionCollection is empty. → This ticket contains 5 Defects ID: 1014109,1014117,1014118,1014123,985011. All of the five defects are related to the Remove method. They have the same problem and could be fixed using a same way. |
comment:3 by , 17 years ago
Owner: | changed from | to
---|
comment:4 by , 17 years ago
External ID: | 1014109 → 1014109,1014117,1014118,1014123,985011 |
---|
Note:
See TracTickets
for help on using tickets.
This ticket contains 5 Defects ID: 1014109,1014117,1014118,1014123,985011. All of the five defects are related to the Remove method. They have the same problem and could be fixed using a same way.
Their descriptions are bellow:
1.985011
MgStringPropertyCollection::Remove(MgStringProperty value) returns a wrong value when the instance of MgStringPropertyCollection is empty.
Step to recur:
MgStringPropertyCollection stringPropertyCollection = new MgStringPropertyCollection();
MgStringProperty stringProperty = new MgStringPropert("stringProperty","testString");
c Use the method Remove(MgStringProperty value) to return a bool type value.
Sample code:
2.1014109
MgClassDefinitionCollection::Remove(MgClassDefinition value) returns a wrong value when the instance of MgClassDefinitionCollection is empty.
Step to recur:
MgClassDefinitionCollection classDefColl = new MgClassDefinitionCollection();
MgClassDefinition classDef = new MgClassDefinition();
Sample code:
3.1014117
MgFeatureSchemaCollection:: Remove(MgFeatureSchema value) returns a wrong value when the instance of MgFeatureSchemaCollection is empty.
Step to recur:
MgUpdateFeatures updateFeat = new MgUpdateFeatures(strClassName, propColl1, strFilterText);
Sample code:
4.1014118
MgMapCollection::Remove(MgMapBase value) returns a wrong value when the instance of MgMapCollection is empty.
Step to recur:
MgMapCollection mapColl = new MgMapCollection();
MgMapBase mapBase = new MgMapBase();
Sample code:
5.1014123
MgPropertyDefinitionCollection:: Remove(MgPropertyDefinition value) returns a wrong value when the instance of MgMapCollection is empty.
Step to recur:
MgPropertyDefinition propDef = new MgPropertyDefinition("propName", MgPropertyType.Boolean);
Sample code: