Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.987 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 145 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
2 | 9 | 157 | 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); } } |
| ||||
[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); } } |
| |||
[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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#67ae9740]] | UseLikeWithProjection |
1 | 2 | [[#67ae9740]] | UseInsensitiveLikeWithProjection |
2 | 1 | [[#67ae96e0]] | Like |
2 | 2 | [[#67ae96e0]] | InsensitiveLike |
3 | 1 | [[#67ae9640]] | "aye" |
3 | 2 | [[#67ae9640]] | "AYE" |