Ticket #352 (closed defect: fixed)
MgDuplicateObjectException is not thrown when inserting duplicated object using MgStringCollection:: Add() .
| Reported by: | jessicacao | Owned by: | Tom Fukushima |
|---|---|---|---|
| Priority: | medium | Milestone: | 2.0 |
| Component: | General | Version: | 2.0.0 |
| Severity: | major | Keywords: | MgStringCollection::Add |
| Cc: | Trevor Wekel | External ID: | 985046 |
Description
MgDuplicateObjectException? is not thrown when inserting duplicated object using MgStringCollection:: Add() .
Step to recur:
1. Construct a MgStringCollection? and add a string object into it.
2. Add the same string object using Add();
Sample code:
MgStringCollection? strColl = new MgStringCollection?();
string str1 = "string1";
strColl.Add(str1);
// MgDuplicateObjectException? expected
strColl.Add(str1);
Expect result: MgDuplicateObjectException?
Actual result: No exception thrown
Change History
Note: See
TracTickets for help on using
tickets.
