CloneSet124


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
45240.973class_member_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14571
src/Iesi.Collections.Test/Generic/SetFixture.cs
24564
src/Iesi.Collections.Test/SetFixture.cs
Clone Instance
1
Line Count
45
Source Line
71
Source File
src/Iesi.Collections.Test/Generic/SetFixture.cs

                #endregion
                #region System.Collections.ICollection Member Tests
                [Test]
                public void CopyTo()
                {
                        string[] dest = new string[3];
                        _set.CopyTo(dest, 0);

                        int count = 0;

                        foreach (string obj in dest)
                        {
                                Assert.IsTrue(_set.Contains(obj), "set should contain the object in the array");
                                count++;
                        }

                        Assert.AreEqual(3, count, "should have 3 items in array");
                }

                [Test]
                public void Count()
                {
                        Assert.AreEqual(3, _set.Count, "should be 3 items");
                        Assert.AreEqual(0, CreateInstance().Count, "new set should have nothing in it.");
                }

                #endregion

                #region Iesi.Collections.ISet<string> Constructor Tests

                [Test]
                public void CtorWithDefaults()
                {
                        List<string> init = new List<string> (3);
                        init.Add("one");
                        init.Add("two");
                        init.Add("three");

                        ISet<string> theSet = CreateInstance(init);

                        Assert.AreEqual(3, init.Count, "3 items in set");

                        int index = 0;
                        foreach (string obj in init)
                        {
                                Assert.IsTrue(theSet.Contains(obj), "set should contain obj at index = " + index.ToString());
                                index++;
                        }
                }



Clone Instance
2
Line Count
45
Source Line
64
Source File
src/Iesi.Collections.Test/SetFixture.cs

                #endregion
                #region System.Collections.ICollection Member Tests
                [Test]
                public void CopyTo()
                {
                        object[] dest = new object[3];
                        _set.CopyTo(dest, 0);

                        int count = 0;

                        foreach (object obj in dest)
                        {
                                Assert.IsTrue(_set.Contains(obj), "set should contain the object in the array");
                                count++;
                        }

                        Assert.AreEqual(3, count, "should have 3 items in array");
                }

                [Test]
                public void Count()
                {
                        Assert.AreEqual(3, _set.Count, "should be 3 items");
                        Assert.AreEqual(0, CreateInstance().Count, "new set should have nothing in it.");
                }

                #endregion

                #region Iesi.Collections.ISet Constructor Tests

                [Test]
                public void CtorWithDefaults()
                {
                        ArrayList init = new ArrayList(3);
                        init.Add("one");
                        init.Add("two");
                        init.Add("three");

                        ISet theSet = CreateInstance(init);

                        Assert.AreEqual(3, init.Count, "3 items in set");

                        int index = 0;
                        foreach (object obj in init)
                        {
                                Assert.IsTrue(theSet.Contains(obj), "set should contain obj at index = " + index.ToString());
                                index++;
                        }
                }



Clone AbstractionParameter Count: 4Parameter Bindings

#endregion
#region System.Collections.ICollection Member Tests
[Test]
public void CopyTo()
{
    [[#variable687f8f40]][] dest = new [[#variable687f8f40]][3];
   _set.CopyTo(dest, 0);
   int count = 0;
   foreach ( [[#variable687f8f40]]obj in dest)
   {
      Assert.IsTrue(_set.Contains(obj), "set should contain the object in the array");
      count++;
   }
   Assert.AreEqual(3, count, "should have 3 items in array");
}

[Test]
public void Count()
{
   Assert.AreEqual(3, _set.Count, "should be 3 items");
   Assert.AreEqual(0, CreateInstance().Count, "new set should have nothing in it.");
}

#endregion
#region Iesi.Collections.ISet<string> Constructor Tests
#region Iesi.Collections.ISet Constructor Tests
[Test]
public void CtorWithDefaults()
{
    [[#variable52088f40]]init = new [[#variable70b27540]](3);
   init.Add("one");
   init.Add("two");
   init.Add("three");
    [[#variable7037ef20]]theSet = CreateInstance(init);
   Assert.AreEqual(3, init.Count, "3 items in set");
   int index = 0;
   foreach ( [[#variable687f8f40]]obj in init)
   {
      Assert.IsTrue(theSet.Contains(obj), "set should contain obj at index = " + index.ToString());
      index++;
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#687f8f40]]
string 
12[[#687f8f40]]
object 
21[[#52088f40]]
List<string> 
22[[#52088f40]]
ArrayList 
31[[#70b27540]]
List<string> 
32[[#70b27540]]
ArrayList 
41[[#7037ef20]]
ISet<string> 
42[[#7037ef20]]
ISet