CloneSet220


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16350.957class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11613
src/NHibernate.Test/TypesTest/Int16TypeFixture.cs
21613
src/NHibernate.Test/TypesTest/Int32TypeFixture.cs
31616
src/NHibernate.Test/TypesTest/Int64TypeFixture.cs
Clone Instance
1
Line Count
16
Source Line
13
Source File
src/NHibernate.Test/TypesTest/Int16TypeFixture.cs

                [Test]
                public void Next()
                {
                        Int16Type type = (Int16Type) NHibernateUtil.Int16;
                        object current = (short) 1;
                        object next = type.Next(current, null);

                        Assert.IsTrue(next is Int16, "Next should be Int16");
                        Assert.AreEqual((short) 2, (short) next, "current should have been incremented to 2");
                }

                [Test]
                public void Seed()
                {
                        Int16Type type = (Int16Type) NHibernateUtil.Int16;
                        Assert.IsTrue(type.Seed(null) is Int16, "seed should be int16");
                }



Clone Instance
2
Line Count
16
Source Line
13
Source File
src/NHibernate.Test/TypesTest/Int32TypeFixture.cs

                [Test]
                public void Next()
                {
                        Int32Type type = (Int32Type) NHibernateUtil.Int32;
                        object current = (int) 1;
                        object next = type.Next(current, null);

                        Assert.IsTrue(next is Int32, "Next should be Int32");
                        Assert.AreEqual((int) 2, (int) next, "current should have been incremented to 2");
                }

                [Test]
                public void Seed()
                {
                        Int32Type type = (Int32Type) NHibernateUtil.Int32;
                        Assert.IsTrue(type.Seed(null) is Int32, "seed should be Int32");
                }



Clone Instance
3
Line Count
16
Source Line
16
Source File
src/NHibernate.Test/TypesTest/Int64TypeFixture.cs

                [Test]
                public void Next()
                {
                        Int64Type type = (Int64Type)NHibernateUtil.Int64;
                        object current = (long)1;
                        object next = type.Next(current, null);

                        Assert.IsTrue(next is Int64, "Next should be Int64");
                        Assert.AreEqual((long)2, (long)next, "current should have been incremented to 2");
                }

                [Test]
                public void Seed()
                {
                        Int64Type type = (Int64Type)NHibernateUtil.Int64;
                        Assert.IsTrue(type.Seed(null) is Int64, "seed should be int64");
                }



Clone AbstractionParameter Count: 5Parameter Bindings

[Test]
public void Next()
{
    [[#variable28eeb820]]type = ( [[#variable28eeb820]])NHibernateUtil. [[#variable28eeb8a0]];
   object current = ( [[#variable54ddad20]])1;
   object next = type.Next(current, null);
   Assert.IsTrue(next is [[#variable28eeb8a0]], [[#variable28eeb7a0]]);
   Assert.AreEqual(( [[#variable54ddad20]])2, ( [[#variable54ddad20]])next, "current should have been incremented to 2");
}

[Test]
public void Seed()
{
    [[#variable28eeb820]]type = ( [[#variable28eeb820]])NHibernateUtil. [[#variable28eeb8a0]];
   Assert.IsTrue(type.Seed(null) is [[#variable28eeb8a0]], [[#variable54ddac80]]);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28eeb820]]
Int64Type 
12[[#28eeb820]]
Int32Type 
13[[#28eeb820]]
Int16Type 
21[[#28eeb8a0]]
Int64 
22[[#28eeb8a0]]
Int32 
23[[#28eeb8a0]]
Int16 
31[[#54ddad20]]
long 
32[[#54ddad20]]
int 
33[[#54ddad20]]
short 
41[[#28eeb7a0]]
"Next should be Int64" 
42[[#28eeb7a0]]
"Next should be Int32" 
43[[#28eeb7a0]]
"Next should be Int16" 
51[[#54ddac80]]
"seed should be int64" 
52[[#54ddac80]]
"seed should be Int32" 
53[[#54ddac80]]
"seed should be int16"