CloneSet953


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26230.982compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1261
src/NHibernate.Test/IdTest/IdFixtureBase.cs
2321
src/NHibernate.Test/TypesTest/TypeFixtureBase.cs
Clone Instance
1
Line Count
26
Source Line
1
Source File
src/NHibernate.Test/IdTest/IdFixtureBase.cs

using System;
using System.Collections;

namespace NHibernate.Test.IdTest
{
        public abstract class IdFixtureBase : TestCase
        {
                protected abstract string TypeName
                {                                    get ;
                }

                protected override string MappingsAssembly
                {
                        get { return "NHibernate.Test";
                            }
                }

                protected override IList Mappings
                {
                        get
                        {
                                return new string[]
                                        {
                                                String.Format("IdTest.{0}Class.hbm.xml", TypeName)
                                        } ;
                        }
                }

        }
}


Clone Instance
2
Line Count
32
Source Line
1
Source File
src/NHibernate.Test/TypesTest/TypeFixtureBase.cs

using System;
using System.Collections;

namespace NHibernate.Test.TypesTest
{
        /// <summary>
        /// Base class for fixtures testing individual types, created to avoid
        /// code duplication in derived classes. It assumes that the fixture
        /// uses mapping file named "(TypeName)Class.hbm.xml" placed in TypesTest
        /// directory in NHibernate.Test assembly.
        /// </summary>
        public abstract class TypeFixtureBase : TestCase
        {
                protected abstract string TypeName
                {                                    get ;
                }

                protected override string MappingsAssembly
                {
                        get { return "NHibernate.Test";
                            }
                }

                protected override IList Mappings
                {
                        get
                        {
                                return new string[]
                                        {
                                                String.Format("TypesTest.{0}Class.hbm.xml", TypeName)
                                        } ;
                        }
                }

        }
}


Clone AbstractionParameter Count: 3Parameter Bindings

using System;
using System.Collections;
namespace NHibernate.Test. [[#variable26d8f6a0]]
{
   /// <summary>
   /// Base class for fixtures testing individual types, created to avoid
   /// code duplication in derived classes. It assumes that the fixture
   /// uses mapping file named "(TypeName)Class.hbm.xml" placed in TypesTest
   /// directory in NHibernate.Test assembly.
   /// </summary>
   public abstract class [[#variable2c821d80]]: TestCase
   {
      protected abstract string TypeName
      {
         get ;
      }

      protected override string MappingsAssembly
      {
         get
         {
            return "NHibernate.Test";
         }
      }

      protected override IList Mappings
      {
         get
         {
            return new string[]
                   {
                      String.Format( [[#variable26128de0]], TypeName)
                   } ;
         }
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#26d8f6a0]]
IdTest 
12[[#26d8f6a0]]
TypesTest 
21[[#2c821d80]]
IdFixtureBase 
22[[#2c821d80]]
TypeFixtureBase 
31[[#26128de0]]
"IdTest.{0}Class.hbm.xml" 
32[[#26128de0]]
"TypesTest.{0}Class.hbm.xml"