Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 5 | 3 | 0.985 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 278 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
2 | 9 | 290 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
3 | 9 | 302 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
4 | 9 | 314 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
5 | 9 | 326 | 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); } } |
| ||||
[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); } } |
| ||||
[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); } } |
| ||||
[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); } } |
| ||||
[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); } } |
| |||
[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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2a3a1dc0]] | UseEqPropertyWithProjection |
1 | 2 | [[#2a3a1dc0]] | UseGePropertyWithProjection |
1 | 3 | [[#2a3a1dc0]] | UseGtPropertyWithProjection |
1 | 4 | [[#2a3a1dc0]] | UseLtPropertyWithProjection |
1 | 5 | [[#2a3a1dc0]] | UseLePropertyWithProjection |
2 | 1 | [[#2cab8a80]] | EqProperty |
2 | 2 | [[#2cab8a80]] | GeProperty |
2 | 3 | [[#2cab8a80]] | GtProperty |
2 | 4 | [[#2cab8a80]] | LtProperty |
2 | 5 | [[#2cab8a80]] | LeProperty |
3 | 1 | [[#2cab86a0]] | 1 |
3 | 2 | [[#2cab86a0]] | 1 |
3 | 3 | [[#2cab86a0]] | 0 |
3 | 4 | [[#2cab86a0]] | 0 |
3 | 5 | [[#2cab86a0]] | 1 |