CloneSet235


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000statement_list[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120420
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
220440
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
Clone Instance
1
Line Count
20
Source Line
420
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                        Assert.AreEqual(2, ((object[])list[1]).Length);

                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();

                        s.CreateCriteria( typeof(Enrolment)).
                                 CreateAlias("Student", "s").
                                 CreateAlias("Course", "c").
                                 Add(Expression.IsNotEmpty("s.Enrolments")).
                                 SetProjection(Projections.ProjectionList().
                                                                 Add(Projections.Property("s.Name")).
                                                                 Add(Projections.Property("c.Description"))).
                                 SetCacheable(true).
                                 List();

                        Assert.AreEqual(2, list.Count);
                        Assert.AreEqual(2, ((object[])list[0]).Length);


Clone Instance
2
Line Count
20
Source Line
440
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                        Assert.AreEqual(2, ((object[])list[1]).Length);

                        t.Commit();
                        s.Close();

                        s = OpenSession();
                        t = s.BeginTransaction();

                        s.CreateCriteria( typeof(Enrolment)).
                                 CreateAlias("Student", "s").
                                 CreateAlias("Course", "c").
                                 Add(Expression.IsNotEmpty("s.Enrolments")).
                                 SetProjection(Projections.ProjectionList().
                                                                 Add(Projections.Property("s.Name")).
                                                                 Add(Projections.Property("c.Description"))).
                                 SetCacheable(true).
                                 List();

                        Assert.AreEqual(2, list.Count);
                        Assert.AreEqual(2, ((object[])list[0]).Length);


Clone AbstractionParameter Count: 0Parameter Bindings

Assert.AreEqual(2, ((object[])list[1]).Length);
t.Commit();
s.Close();
s = OpenSession();
t = s.BeginTransaction();
s.CreateCriteria( typeof(Enrolment)).CreateAlias("Student", "s").CreateAlias("Course", "c").Add(Expression.IsNotEmpty("s.Enrolments")).SetProjection(Projections.ProjectionList().Add(Projections.Property("s.Name")).Add(Projections.Property("c.Description"))).SetCacheable(true).List();
Assert.AreEqual(2, list.Count);
Assert.AreEqual(2, ((object[])list[0]).Length);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None