CloneSet631


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.987class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19145
src/NHibernate.Test/Criteria/ProjectionsTest.cs
29157
src/NHibernate.Test/Criteria/ProjectionsTest.cs
Clone Instance
1
Line Count
9
Source Line
145
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                [Test]
                public void UseLikeWithProjection()
                {
                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.Like(Projections.Property("Name"), "aye", MatchMode.Start)).
                                         List<Student> ();
                                Assert.AreEqual(27L, list[0].StudentNumber);
                        }
                }



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

                [Test]
                public void UseInsensitiveLikeWithProjection()
                {
                        using (ISession session = sessions.OpenSession())
                        {
                                IList<Student> list = session.CreateCriteria( typeof(Student)).
                                         Add          (Expression.InsensitiveLike(Projections.Property("Name"), "AYE", MatchMode.Start)).
                                         List<Student> ();
                                Assert.AreEqual(27L, list[0].StudentNumber);
                        }
                }



Clone AbstractionParameter Count: 3Parameter Bindings

[Test]
public void [[#variable67ae9740]]()
{
   using (ISession session = sessions.OpenSession())
   {
      IList<Student> list = session.CreateCriteria( typeof(Student)).Add(Expression. [[#variable67ae96e0]](Projections.Property("Name"), [[#variable67ae9640]], MatchMode.Start)).List<Student> ();
      Assert.AreEqual(27L, list[0].StudentNumber);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#67ae9740]]
UseLikeWithProjection 
12[[#67ae9740]]
UseInsensitiveLikeWithProjection 
21[[#67ae96e0]]
Like 
22[[#67ae96e0]]
InsensitiveLike 
31[[#67ae9640]]
"aye" 
32[[#67ae9640]]
"AYE"