CloneSet193


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9530.985class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19278
src/NHibernate.Test/Criteria/ProjectionsTest.cs
29290
src/NHibernate.Test/Criteria/ProjectionsTest.cs
39302
src/NHibernate.Test/Criteria/ProjectionsTest.cs
49314
src/NHibernate.Test/Criteria/ProjectionsTest.cs
59326
src/NHibernate.Test/Criteria/ProjectionsTest.cs
Clone Instance
1
Line Count
9
Source Line
278
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                [Test]
                public void UseEqPropertyWithProjection()
                {
                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.EqProperty(Projections.Id(), Projections.Id())).
                                         List<Student> ();
                                Assert.AreEqual(1, list.Count);
                        }
                }



Clone Instance
2
Line Count
9
Source Line
290
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                [Test]
                public void UseGePropertyWithProjection()
                {
                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.GeProperty(Projections.Id(), Projections.Id())).
                                         List<Student> ();
                                Assert.AreEqual(1, list.Count);
                        }
                }



Clone Instance
3
Line Count
9
Source Line
302
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                [Test]
                public void UseGtPropertyWithProjection()
                {
                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.GtProperty(Projections.Id(), Projections.Id())).
                                         List<Student> ();
                                Assert.AreEqual(0, list.Count);
                        }
                }



Clone Instance
4
Line Count
9
Source Line
314
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                [Test]
                public void UseLtPropertyWithProjection()
                {
                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.LtProperty(Projections.Id(), Projections.Id())).
                                         List<Student> ();
                                Assert.AreEqual(0, list.Count);
                        }
                }



Clone Instance
5
Line Count
9
Source Line
326
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                [Test]
                public void UseLePropertyWithProjection()
                {
                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.LeProperty(Projections.Id(), Projections.Id())).
                                         List<Student> ();
                                Assert.AreEqual(1, list.Count);
                        }
                }



Clone AbstractionParameter Count: 3Parameter Bindings

[Test]
public void [[#variable2a3a1dc0]]()
{
   using (ISession session = sessions.OpenSession())
   {
      IList<Student> list = session.CreateCriteria( typeof(Student)).Add(Expression. [[#variable2cab8a80]](Projections.Id(), Projections.Id())).List<Student> ();
      Assert.AreEqual( [[#variable2cab86a0]], list.Count);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2a3a1dc0]]
UseEqPropertyWithProjection 
12[[#2a3a1dc0]]
UseGePropertyWithProjection 
13[[#2a3a1dc0]]
UseGtPropertyWithProjection 
14[[#2a3a1dc0]]
UseLtPropertyWithProjection 
15[[#2a3a1dc0]]
UseLePropertyWithProjection 
21[[#2cab8a80]]
EqProperty 
22[[#2cab8a80]]
GeProperty 
23[[#2cab8a80]]
GtProperty 
24[[#2cab8a80]]
LtProperty 
25[[#2cab8a80]]
LeProperty 
31[[#2cab86a0]]
1 
32[[#2cab86a0]]
1 
33[[#2cab86a0]]
0 
34[[#2cab86a0]]
0 
35[[#2cab86a0]]
1