CloneSet388


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12360.962non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113151
src/Iesi.Collections.Test/Generic/SetFixture.cs
212318
src/Iesi.Collections.Test/Generic/SetFixture.cs
313340
src/Iesi.Collections.Test/Generic/SetFixture.cs
Clone Instance
1
Line Count
13
Source Line
151
Source File
src/Iesi.Collections.Test/Generic/SetFixture.cs

                        try
                        {
                                Assert.IsTrue(_set.AddAll(addAll), "should have modified set");
                                Assert.AreEqual(5, _set.Count, "should have added one 'four' and 'five'");

                                Assert.IsFalse(_set.AddAll(addAll), "all elements already in set");
                                if (_set.IsReadOnly)
                                        Assert.Fail("Read-only set can be modified");
                        }
                        catch (NotSupportedException)
                        {
                                if ( !_set.IsReadOnly)
                                        throw;
                        }


Clone Instance
2
Line Count
12
Source Line
318
Source File
src/Iesi.Collections.Test/Generic/SetFixture.cs

                        try
                        {
                                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.");
                                if (_set.IsReadOnly)
                                        Assert.Fail("Read-only set can be modified");
                        }
                        catch (NotSupportedException)
                        {
                                if ( !_set.IsReadOnly)
                                        throw;
                        }


Clone Instance
3
Line Count
13
Source Line
340
Source File
src/Iesi.Collections.Test/Generic/SetFixture.cs

                        try
                        {
                                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");
                                if (_set.IsReadOnly)
                                        Assert.Fail("Read-only set can be modified");
                        }
                        catch (NotSupportedException)
                        {
                                if ( !_set.IsReadOnly)
                                        throw;
                        }


Clone AbstractionParameter Count: 6Parameter Bindings

try
{
   Assert.IsTrue(_set. [[#variable6ab08a80]]( [[#variable6ab089c0]]), [[#variable6ab08960]]);
   Assert.AreEqual( [[#variable6ab08900]], _set.Count, [[#variable6ab08880]]);
   Assert.IsFalse(_set. [[#variable6ab08a80]]( [[#variable6ab089c0]]), [[#variable6ab087c0]]);
   if (_set.IsReadOnly)
      Assert.Fail("Read-only set can be modified");
}
catch (NotSupportedException)
{
   if ( !_set.IsReadOnly)
      throw;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6ab08a80]]
RemoveAll 
12[[#6ab08a80]]
AddAll 
13[[#6ab08a80]]
RetainAll 
21[[#6ab089c0]]
all 
22[[#6ab089c0]]
addAll 
23[[#6ab089c0]]
retain 
31[[#6ab08960]]
"should have removed an element" 
32[[#6ab08960]]
"should have modified set" 
33[[#6ab08960]]
"set was modified" 
41[[#6ab08900]]
2 
42[[#6ab08900]]
5 
43[[#6ab08900]]
1 
51[[#6ab08880]]
"should be down to 2 elements." 
52[[#6ab08880]]
"should have added one 'four' and 'five'" 
53[[#6ab08880]]
"only 1 element retained" 
61[[#6ab087c0]]
"all of the elements already removed so set not modified." 
62[[#6ab087c0]]
"all elements already in set" 
63[[#6ab087c0]]
"set was not modified"