CloneSet306


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16210.976class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11632
src/Iesi.Collections.Test/Generic/HashedSetFixture.cs
21632
src/Iesi.Collections.Test/HashedSetFixture.cs
Clone Instance
1
Line Count
16
Source Line
32
Source File
src/Iesi.Collections.Test/Generic/HashedSetFixture.cs

                [Test]
                public void Serialization()
                {
                        // serialize and then deserialize the ISet.
                        Stream stream = new MemoryStream();
                        IFormatter formatter = new BinaryFormatter();
                        formatter.Serialize(stream, _set);
                        stream.Position = 0;

                        ISet<string> desSet = (ISet<string> )formatter.Deserialize(stream);
                        stream.Close();

                        Assert.AreEqual(3, desSet.Count, "should have des 3 items");
                        Assert.IsTrue(desSet.Contains(one), "should contain one");
                        Assert.IsTrue(desSet.Contains(two), "should contain two");
                        Assert.IsTrue(desSet.Contains(three), "should contain three");
                }



Clone Instance
2
Line Count
16
Source Line
32
Source File
src/Iesi.Collections.Test/HashedSetFixture.cs

                [Test]
                public void Serialization()
                {
                        // serialize and then deserialize the ISet.
                        Stream stream = new MemoryStream();
                        IFormatter formatter = new BinaryFormatter();
                        formatter.Serialize(stream, _set);
                        stream.Position = 0;

                        ISet desSet = (ISet) formatter.Deserialize(stream);
                        stream.Close();

                        Assert.AreEqual(3, desSet.Count, "should have des 3 items");
                        Assert.IsTrue(desSet.Contains(one), "should contain one");
                        Assert.IsTrue(desSet.Contains(two), "should contain two");
                        Assert.IsTrue(desSet.Contains(three), "should contain three");
                }



Clone AbstractionParameter Count: 1Parameter Bindings

[Test]
public void Serialization()
{
   // serialize and then deserialize the ISet.
   Stream stream = new MemoryStream();
   IFormatter formatter = new BinaryFormatter();
   formatter.Serialize(stream, _set);
   stream.Position = 0;
    [[#variable5eb55540]]desSet = ( [[#variable5eb55540]])formatter.Deserialize(stream);
   stream.Close();
   Assert.AreEqual(3, desSet.Count, "should have des 3 items");
   Assert.IsTrue(desSet.Contains(one), "should contain one");
   Assert.IsTrue(desSet.Contains(two), "should contain two");
   Assert.IsTrue(desSet.Contains(three), "should contain three");
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5eb55540]]
ISet 
12[[#5eb55540]]
ISet<string>