CloneSet831


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.989class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1101800
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
2101813
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
Clone Instance
1
Line Count
10
Source Line
1800
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                [Test]
                public void LikeProjectionUsingRestrictionsTest()
                {
                        using (ISession session = this.OpenSession())
                        {
                                ICriteria criteria = session.CreateCriteria( typeof(Student), "c");

                                criteria.Add(Restrictions.Like(Projections.Constant("Name"), "John", MatchMode.Anywhere));

                                criteria.List();
                        }
                }



Clone Instance
2
Line Count
10
Source Line
1813
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                [Test]
                public void InsensitiveLikeProjectionUsingRestrictionsTest()
                {
                        using (ISession session = this.OpenSession())
                        {
                                ICriteria criteria = session.CreateCriteria( typeof(Student), "c");

                                criteria.Add(Restrictions.InsensitiveLike(Projections.Constant("Name"), "John", MatchMode.Anywhere));

                                criteria.List();
                        }
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[Test]
public void [[#variable70e3c940]]()
{
   using (ISession session = this.OpenSession())
   {
      ICriteria criteria = session.CreateCriteria( typeof(Student), "c");
      criteria.Add(Restrictions. [[#variable70e3c8c0]](Projections.Constant("Name"), "John", MatchMode.Anywhere));
      criteria.List();
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70e3c940]]
LikeProjectionUsingRestrictionsTest 
12[[#70e3c940]]
InsensitiveLikeProjectionUsingRestrictionsTest 
21[[#70e3c8c0]]
Like 
22[[#70e3c8c0]]
InsensitiveLike