Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 4 | 0.950 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 30 | src/Iesi.Collections.Test/Generic/SortedSetFixture.cs |
2 | 14 | 29 | src/Iesi.Collections.Test/SortedSetFixture.cs |
| ||||
[Test] public void OrderedEnumeration() { List<string> expectedOrder = new List<string> (3); expectedOrder.Add(one); expectedOrder.Add(two); expectedOrder.Add(three); expectedOrder.Sort(); int index = 0; foreach (string str in _set) { Assert.AreEqual(str, expectedOrder[index], index.ToString() + " did not have same value"); index++; } } |
| ||||
[Test] public void OrderedEnumeration() { ArrayList expectedOrder = new ArrayList(3); expectedOrder.Add(one); expectedOrder.Add(two); expectedOrder.Add(three); expectedOrder.Sort(); int index = 0; foreach (object obj in _set) { Assert.AreEqual(obj, expectedOrder[index], index.ToString() + " did not have same value"); index++; } } |
| |||
[Test] public void OrderedEnumeration() { [[#variable700b9960]]expectedOrder = new [[#variable700b98e0]](3); expectedOrder.Add(one); expectedOrder.Add(two); expectedOrder.Add(three); expectedOrder.Sort(); int index = 0; foreach ( [[#variable700b9860]] [[#variable700b97e0]]in _set) { Assert.AreEqual( [[#variable700b97e0]], expectedOrder[index], index.ToString() + " did not have same value"); index++; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#700b9960]] | ArrayList |
1 | 2 | [[#700b9960]] | List<string> |
2 | 1 | [[#700b98e0]] | ArrayList |
2 | 2 | [[#700b98e0]] | List<string> |
3 | 1 | [[#700b9860]] | object |
3 | 2 | [[#700b9860]] | string |
4 | 1 | [[#700b97e0]] | obj |
4 | 2 | [[#700b97e0]] | str |