CloneSet355


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24230.985namespace_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12410
src/NHibernate.Test/TypesTest/TimeAsTimeSpanTypeFixture.cs
22410
src/NHibernate.Test/TypesTest/TimeSpanTypeFixture.cs
Clone Instance
1
Line Count
24
Source Line
10
Source File
src/NHibernate.Test/TypesTest/TimeAsTimeSpanTypeFixture.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");
                }

        }


Clone Instance
2
Line Count
24
Source Line
10
Source File
src/NHibernate.Test/TypesTest/TimeSpanTypeFixture.cs

        /// <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");
                }

        }


Clone AbstractionParameter Count: 3Parameter Bindings

/// <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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f014660]]
TimeSpanTypeFixture 
12[[#5f014660]]
TimeAsTimeSpanTypeFixture 
21[[#5f0145e0]]
TimeSpanType 
22[[#5f0145e0]]
TimeAsTimeSpanType 
31[[#703a1260]]
TimeSpan 
32[[#703a1260]]
TimeAsTimeSpan