Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 3 | 0.985 | namespace_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 10 | src/NHibernate.Test/TypesTest/TimeAsTimeSpanTypeFixture.cs |
2 | 24 | 10 | src/NHibernate.Test/TypesTest/TimeSpanTypeFixture.cs |
| ||||
/// <summary> /// Summary description for TimeAsTimeSpanTypeFixture. /// </summary> [TestFixture] public class TimeAsTimeSpanTypeFixture { [Test] public void Next() { var type = (TimeAsTimeSpanType) NHibernateUtil.TimeAsTimeSpan; object current = new TimeSpan(DateTime.Now.Ticks - 5); object next = type.Next(current, null); Assert.IsTrue(next is TimeSpan, "Next should be TimeSpan"); Assert.IsTrue((TimeSpan) next > (TimeSpan) current, "next should be greater than current (could be equal depending on how quickly this occurs)"); } [Test] public void Seed() { var type = (TimeAsTimeSpanType) NHibernateUtil.TimeAsTimeSpan; Assert.IsTrue(type.Seed(null) is TimeSpan, "seed should be TimeSpan"); } } |
| ||||
/// <summary> /// Summary description for TimeSpanTypeFixture. /// </summary> [TestFixture] public class TimeSpanTypeFixture { [Test] public void Next() { var type = (TimeSpanType) NHibernateUtil.TimeSpan; object current = new TimeSpan(DateTime.Now.Ticks - 5); object next = type.Next(current, null); Assert.IsTrue(next is TimeSpan, "Next should be TimeSpan"); Assert.IsTrue((TimeSpan) next > (TimeSpan) current, "next should be greater than current (could be equal depending on how quickly this occurs)"); } [Test] public void Seed() { var type = (TimeSpanType) NHibernateUtil.TimeSpan; Assert.IsTrue(type.Seed(null) is TimeSpan, "seed should be TimeSpan"); } } |
| |||
/// <summary> /// Summary description for TimeSpanTypeFixture. /// Summary description for TimeAsTimeSpanTypeFixture. /// </summary> [TestFixture] public class [[#variable5f014660]] { [Test] public void Next() { var type = ( [[#variable5f0145e0]])NHibernateUtil. [[#variable703a1260]]; object current = new TimeSpan(DateTime.Now.Ticks - 5); object next = type.Next(current, null); Assert.IsTrue(next is TimeSpan, "Next should be TimeSpan"); Assert.IsTrue((TimeSpan)next > (TimeSpan)current, "next should be greater than current (could be equal depending on how quickly this occurs)"); } [Test] public void Seed() { var type = ( [[#variable5f0145e0]])NHibernateUtil. [[#variable703a1260]]; Assert.IsTrue(type.Seed(null) is TimeSpan, "seed should be TimeSpan"); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f014660]] | TimeSpanTypeFixture |
1 | 2 | [[#5f014660]] | TimeAsTimeSpanTypeFixture |
2 | 1 | [[#5f0145e0]] | TimeSpanType |
2 | 2 | [[#5f0145e0]] | TimeAsTimeSpanType |
3 | 1 | [[#703a1260]] | TimeSpan |
3 | 2 | [[#703a1260]] | TimeAsTimeSpan |