Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 4 | 0 | 1.000 | statement_list[12] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 338 | src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs |
2 | 18 | 404 | src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs |
3 | 18 | 474 | src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs |
4 | 18 | 544 | 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]); |
| ||||
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]); |
| ||||
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]); |
| ||||
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]); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |