CloneSet71


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18401.000statement_list[12]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118338
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs
218404
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs
318474
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs
418544
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs
Clone Instance
1
Line Count
18
Source Line
338
Source File
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs

                        int maxIndex = 4;
                        ISession[] s = new ISession[maxIndex];
                        ITransaction[] t = new ITransaction[maxIndex];
                        BasicClass[] bc = new BasicClass[maxIndex];

                        int index = 0;
                        int id = 1;

                        bc[index] = InsertBasicClass(id);

                        index++;

                        // modify the array so it is updated - should not be recreated
                        s[index] = OpenSession();
                        t[index] = s[index].BeginTransaction();

                        bc[index] = (BasicClass) s[index].Load( typeof(BasicClass), id);
                        AssertPropertiesEqual(bc[index - 1], bc[index]);


Clone Instance
2
Line Count
18
Source Line
404
Source File
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs

                        int maxIndex = 4;
                        ISession[] s = new ISession[maxIndex];
                        ITransaction[] t = new ITransaction[maxIndex];
                        BasicClass[] bc = new BasicClass[maxIndex];

                        int index = 0;
                        int id = 1;

                        bc[index] = InsertBasicClass(id);

                        index++;

                        // modify the array so it is updated
                        s[index] = OpenSession();
                        t[index] = s[index].BeginTransaction();

                        bc[index] = (BasicClass) s[index].Load( typeof(BasicClass), id);
                        AssertPropertiesEqual(bc[index - 1], bc[index]);


Clone Instance
3
Line Count
18
Source Line
474
Source File
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs

                        int maxIndex = 4;
                        ISession[] s = new ISession[maxIndex];
                        ITransaction[] t = new ITransaction[maxIndex];
                        BasicClass[] bc = new BasicClass[maxIndex];

                        int index = 0;
                        int id = 1;

                        bc[index] = InsertBasicClass(id);

                        index++;

                        // modify the array so it is updated - should not be recreated
                        s[index] = OpenSession();
                        t[index] = s[index].BeginTransaction();

                        bc[index] = (BasicClass) s[index].Load( typeof(BasicClass), id);
                        AssertPropertiesEqual(bc[index - 1], bc[index]);


Clone Instance
4
Line Count
18
Source Line
544
Source File
src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs

                        int maxIndex = 4;
                        ISession[] s = new ISession[maxIndex];
                        ITransaction[] t = new ITransaction[maxIndex];
                        BasicClass[] bc = new BasicClass[maxIndex];

                        int index = 0;
                        int id = 1;

                        bc[index] = InsertBasicClass(id);

                        index++;

                        // modify the array so it is updated - should not be recreated
                        s[index] = OpenSession();
                        t[index] = s[index].BeginTransaction();

                        bc[index] = (BasicClass) s[index].Load( typeof(BasicClass), id);
                        AssertPropertiesEqual(bc[index - 1], bc[index]);


Clone AbstractionParameter Count: 0Parameter Bindings

int maxIndex = 4;
ISession[] s = new ISession[maxIndex];
ITransaction[] t = new ITransaction[maxIndex];
BasicClass[] bc = new BasicClass[maxIndex];
int index = 0;
int id = 1;
bc[index] = InsertBasicClass(id);
index++;
// modify the array so it is updated - should not be recreated
// modify the array so it is updated
s[index] = OpenSession();
t[index] = s[index].BeginTransaction();
bc[index] = (BasicClass)s[index].Load( typeof(BasicClass), id);
AssertPropertiesEqual(bc[index - 1], bc[index]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None