CloneSet580


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10260.951class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110263
src/Iesi.Collections.Test/SetFixture.cs
211275
src/Iesi.Collections.Test/SetFixture.cs
Clone Instance
1
Line Count
10
Source Line
263
Source File
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.");
                }



Clone Instance
2
Line Count
11
Source Line
275
Source File
src/Iesi.Collections.Test/SetFixture.cs

                [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");
                }



Clone AbstractionParameter Count: 6Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28826540]]
RemoveAll 
12[[#28826540]]
RetainAll 
21[[#288264a0]]
all 
22[[#288264a0]]
retain 
31[[#28826400]]
"should have removed an element" 
32[[#28826400]]
"set was modified" 
41[[#28826380]]
2 
42[[#28826380]]
1 
51[[#28826300]]
"should be down to 2 elements." 
52[[#28826300]]
"only 1 element retained" 
61[[#28826280]]
"all of the elements already removed so set not modified." 
62[[#28826280]]
"set was not modified"