CloneSet159


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33340.981compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1331
src/NHibernate.Test/IdTest/HiLoTableGeneratorInt16Fixture.cs
2331
src/NHibernate.Test/IdTest/HiLoTableGeneratorInt32Fixture.cs
3331
src/NHibernate.Test/IdTest/HiLoTableGeneratorInt64Fixture.cs
Clone Instance
1
Line Count
33
Source Line
1
Source File
src/NHibernate.Test/IdTest/HiLoTableGeneratorInt16Fixture.cs

using System;
using NUnit.Framework;

namespace NHibernate.Test.IdTest
{
        [TestFixture]
        public class HiLoTableGeneratorInt16Fixture : IdFixtureBase
        {
                protected override string TypeName
                {
                        get { return "HiLoInt16";
                            }
                }

                [Test]
                public void ReadWrite()
                {
                        Int16 id;
                        ISession s = OpenSession();
                        HiLoInt16Class b = new HiLoInt16Class();
                        s.Save(b);
                        s.Flush();
                        id = b.Id;
                        s.Close();

                        s = OpenSession();
                        b = (HiLoInt16Class) s.Load( typeof(HiLoInt16Class), b.Id);
                        Assert.AreEqual(id, b.Id);
                        s.Delete(b);
                        s.Flush();
                        s.Close();
                }

        }
}


Clone Instance
2
Line Count
33
Source Line
1
Source File
src/NHibernate.Test/IdTest/HiLoTableGeneratorInt32Fixture.cs

using System;
using NUnit.Framework;

namespace NHibernate.Test.IdTest
{
        [TestFixture]
        public class HiLoTableGeneratorInt32Fixture : IdFixtureBase
        {
                protected override string TypeName
                {
                        get { return "HiLoInt32";
                            }
                }

                [Test]
                public void ReadWrite()
                {
                        Int32 id;
                        ISession s = OpenSession();
                        HiLoInt32Class b = new HiLoInt32Class();
                        s.Save(b);
                        s.Flush();
                        id = b.Id;
                        s.Close();

                        s = OpenSession();
                        b = (HiLoInt32Class) s.Load( typeof(HiLoInt32Class), b.Id);
                        Assert.AreEqual(id, b.Id);
                        s.Delete(b);
                        s.Flush();
                        s.Close();
                }

        }
}


Clone Instance
3
Line Count
33
Source Line
1
Source File
src/NHibernate.Test/IdTest/HiLoTableGeneratorInt64Fixture.cs

using System;
using NUnit.Framework;

namespace NHibernate.Test.IdTest
{
        [TestFixture]
        public class HiLoTableGeneratorInt64Fixture : IdFixtureBase
        {
                protected override string TypeName
                {
                        get { return "HiLoInt64";
                            }
                }

                [Test]
                public void ReadWrite()
                {
                        Int64 id;
                        ISession s = OpenSession();
                        HiLoInt64Class b = new HiLoInt64Class();
                        s.Save(b);
                        s.Flush();
                        id = b.Id;
                        s.Close();

                        s = OpenSession();
                        b = (HiLoInt64Class) s.Load( typeof(HiLoInt64Class), b.Id);
                        Assert.AreEqual(id, b.Id);
                        s.Delete(b);
                        s.Flush();
                        s.Close();
                }

        }
}


Clone AbstractionParameter Count: 4Parameter Bindings

using System;
using NUnit.Framework;
namespace NHibernate.Test.IdTest
{
   [TestFixture]
   public class [[#variable4ef78b80]]: IdFixtureBase
   {
      protected override string TypeName
      {
         get
         {
            return [[#variable4ef78be0]];
         }
      }

      [Test]
      public void ReadWrite()
      {
          [[#variable4ef782a0]]id;
         ISession s = OpenSession();
          [[#variable4ef78b60]]b = new [[#variable4ef78b60]]();
         s.Save(b);
         s.Flush();
         id = b.Id;
         s.Close();
         s = OpenSession();
         b = ( [[#variable4ef78b60]])s.Load( typeof( [[#variable4ef78b60]]), b.Id);
         Assert.AreEqual(id, b.Id);
         s.Delete(b);
         s.Flush();
         s.Close();
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4ef78b80]]
HiLoTableGeneratorInt16Fixture 
12[[#4ef78b80]]
HiLoTableGeneratorInt32Fixture 
13[[#4ef78b80]]
HiLoTableGeneratorInt64Fixture 
21[[#4ef78be0]]
"HiLoInt16" 
22[[#4ef78be0]]
"HiLoInt32" 
23[[#4ef78be0]]
"HiLoInt64" 
31[[#4ef782a0]]
Int16 
32[[#4ef782a0]]
Int32 
33[[#4ef782a0]]
Int64 
41[[#4ef78b60]]
HiLoInt16Class 
42[[#4ef78b60]]
HiLoInt32Class 
43[[#4ef78b60]]
HiLoInt64Class