CloneSet286


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.995statement_list[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114639
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
2141014
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs
Clone Instance
1
Line Count
14
Source Line
639
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                        Assert.AreEqual(course.CourseCode, m1["cCode"]);

                        resultWithMaps = s.CreateCriteria( typeof(Enrolment)).
                                 SetProjection(Projections.Property("StudentNumber").As("stNumber")).
                                 AddOrder(Order.Desc("stNumber")).
                                 SetResultTransformer(CriteriaSpecification.AliasToEntityMap).
                                 List    ();

                        Assert.AreEqual(2, resultWithMaps.Count);
                        IDictionary m0 = (IDictionary)resultWithMaps[0];
                        m1 = (IDictionary)resultWithMaps[1];

                        Assert.AreEqual(101L, m1["stNumber"]);
                        Assert.AreEqual(667L, m0["stNumber"]);


Clone Instance
2
Line Count
14
Source Line
1014
Source File
src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

                        Assert.AreEqual(course.CourseCode, m1["cCode"]);

                        resultWithMaps = s.CreateCriteria( typeof(Enrolment)).
                                 SetProjection(Property.ForName("StudentNumber").As("stNumber")).
                                 AddOrder(Order.Desc("stNumber")).
                                 SetResultTransformer(CriteriaSpecification.AliasToEntityMap).
                                 List    ();

                        Assert.AreEqual(2, resultWithMaps.Count);
                        IDictionary m0 = (IDictionary)resultWithMaps[0];
                        m1 = (IDictionary)resultWithMaps[1];

                        Assert.AreEqual(101L, m1["stNumber"]);
                        Assert.AreEqual(667L, m0["stNumber"]);


Clone AbstractionParameter Count: 2Parameter Bindings

Assert.AreEqual(course.CourseCode, m1["cCode"]);
resultWithMaps = s.CreateCriteria( typeof(Enrolment)).SetProjection( [[#variable6f4ab600]]. [[#variable6f4ab580]]("StudentNumber").As("stNumber")).AddOrder(Order.Desc("stNumber")).SetResultTransformer(CriteriaSpecification.AliasToEntityMap).List();
Assert.AreEqual(2, resultWithMaps.Count);
IDictionary m0 = (IDictionary)resultWithMaps[0];
m1 = (IDictionary)resultWithMaps[1];
Assert.AreEqual(101L, m1["stNumber"]);
Assert.AreEqual(667L, m0["stNumber"]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6f4ab600]]
Projections 
12[[#6f4ab600]]
Property 
21[[#6f4ab580]]
Property 
22[[#6f4ab580]]
ForName