CloneSet272


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18230.988class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11813
src/NHibernate.Test/UtilityTest/SafetyEnumerableFixture.cs
21852
src/NHibernate.Test/UtilityTest/SafetyEnumerableFixture.cs
Clone Instance
1
Line Count
18
Source Line
13
Source File
src/NHibernate.Test/UtilityTest/SafetyEnumerableFixture.cs

                [Test]
                public void MixedCollection()
                {
                        IList<IAType> l = new List<IAType> ();
                        l.Add(new AClass());
                        l.Add(new BClass());
                        l.Add(new AClass());
                        l.Add(new BClass());
                        l.Add(new AClass());
                        IEnumerable<AClass> eAClass = new SafetyEnumerable<AClass> (l);
                        int i = 0;
                        foreach (IAType aClass in eAClass) ++i;
                        Assert.AreEqual(3, i);

                        IEnumerable<BClass> eBClass = new SafetyEnumerable<BClass> (l);
                        i = 0;
                        foreach (IAType aClass in eBClass) ++i;
                        Assert.AreEqual(2, i);
                }



Clone Instance
2
Line Count
18
Source Line
52
Source File
src/NHibernate.Test/UtilityTest/SafetyEnumerableFixture.cs

                [Test]
                public void MixedWithNulls()
                {
                        IList<IAType> l = new List<IAType> ();
                        l.Add(new AClass());
                        l.Add(null);
                        l.Add(new AClass());
                        l.Add(new BClass());
                        l.Add(new AClass());
                        IEnumerable<AClass> eAClass = new SafetyEnumerable<AClass> (l);
                        int i = 0;
                        foreach (IAType aClass in eAClass) ++i;
                        Assert.AreEqual(4, i);

                        IEnumerable<BClass> eBClass = new SafetyEnumerable<BClass> (l);
                        i = 0;
                        foreach (IAType aClass in eBClass) ++i;
                        Assert.AreEqual(2, i);
                }



Clone AbstractionParameter Count: 3Parameter Bindings

[Test]
public void [[#variable46dec9c0]]()
{
   IList<IAType> l = new List<IAType> ();
   l.Add(new AClass());
   l.Add( [[#variable657d4580]]);
   l.Add(new AClass());
   l.Add(new BClass());
   l.Add(new AClass());
   IEnumerable<AClass> eAClass = new SafetyEnumerable<AClass> (l);
   int i = 0;
   foreach (IAType aClass in eAClass)
      ++i;
   Assert.AreEqual( [[#variable657d4500]], i);
   IEnumerable<BClass> eBClass = new SafetyEnumerable<BClass> (l);
   i = 0;
   foreach (IAType aClass in eBClass)
      ++i;
   Assert.AreEqual(2, i);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#46dec9c0]]
MixedCollection 
12[[#46dec9c0]]
MixedWithNulls 
21[[#657d4580]]
new BClass() 
22[[#657d4580]]
null 
31[[#657d4500]]
3 
32[[#657d4500]]
4