Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 6 | 0.951 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 263 | src/Iesi.Collections.Test/SetFixture.cs |
2 | 11 | 275 | src/Iesi.Collections.Test/SetFixture.cs |
| ||||
[Test] public void RemoveAll() { ArrayList all = new ArrayList(2); all.Add(one); all.Add("not in there"); Assert.IsTrue(_set.RemoveAll(all), "should have removed an element"); Assert.AreEqual(2, _set.Count, "should be down to 2 elements."); Assert.IsFalse(_set.RemoveAll(all), "all of the elements already removed so set not modified."); } |
| ||||
[Test] public void RetainAll() { ArrayList retain = new ArrayList(2); retain.Add(one); retain.Add("not in there"); Assert.IsTrue(_set.RetainAll(retain), "set was modified"); Assert.AreEqual(1, _set.Count, "only 1 element retained"); Assert.IsFalse(_set.RetainAll(retain), "set was not modified"); } |
| |||
[Test] public void [[#variable28826540]]() { ArrayList [[#variable288264a0]]= new ArrayList(2); [[#variable288264a0]].Add(one); [[#variable288264a0]].Add("not in there"); Assert.IsTrue(_set. [[#variable28826540]]( [[#variable288264a0]]), [[#variable28826400]]); Assert.AreEqual( [[#variable28826380]], _set.Count, [[#variable28826300]]); Assert.IsFalse(_set. [[#variable28826540]]( [[#variable288264a0]]), [[#variable28826280]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28826540]] | RemoveAll |
1 | 2 | [[#28826540]] | RetainAll |
2 | 1 | [[#288264a0]] | all |
2 | 2 | [[#288264a0]] | retain |
3 | 1 | [[#28826400]] | "should have removed an element" |
3 | 2 | [[#28826400]] | "set was modified" |
4 | 1 | [[#28826380]] | 2 |
4 | 2 | [[#28826380]] | 1 |
5 | 1 | [[#28826300]] | "should be down to 2 elements." |
5 | 2 | [[#28826300]] | "only 1 element retained" |
6 | 1 | [[#28826280]] | "all of the elements already removed so set not modified." |
6 | 2 | [[#28826280]] | "set was not modified" |