Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 3 | 5 | 0.957 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 13 | src/NHibernate.Test/TypesTest/Int16TypeFixture.cs |
2 | 16 | 13 | src/NHibernate.Test/TypesTest/Int32TypeFixture.cs |
3 | 16 | 16 | src/NHibernate.Test/TypesTest/Int64TypeFixture.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"); } |
| ||||
[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"); } |
| ||||
[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"); } |
| |||
[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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28eeb820]] | Int64Type |
1 | 2 | [[#28eeb820]] | Int32Type |
1 | 3 | [[#28eeb820]] | Int16Type |
2 | 1 | [[#28eeb8a0]] | Int64 |
2 | 2 | [[#28eeb8a0]] | Int32 |
2 | 3 | [[#28eeb8a0]] | Int16 |
3 | 1 | [[#54ddad20]] | long |
3 | 2 | [[#54ddad20]] | int |
3 | 3 | [[#54ddad20]] | short |
4 | 1 | [[#28eeb7a0]] | "Next should be Int64" |
4 | 2 | [[#28eeb7a0]] | "Next should be Int32" |
4 | 3 | [[#28eeb7a0]] | "Next should be Int16" |
5 | 1 | [[#54ddac80]] | "seed should be int64" |
5 | 2 | [[#54ddac80]] | "seed should be Int32" |
5 | 3 | [[#54ddac80]] | "seed should be int16" |