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.983 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 254 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
2 | 9 | 266 | src/NHibernate.Test/Criteria/ProjectionsTest.cs |
| ||||
[Test] public void UseIsNullWithProjection() { using (ISession session = sessions.OpenSession()) { IList<Student> list = session.CreateCriteria( typeof(Student)). Add (Expression.IsNull(Projections.Id())). List<Student> (); Assert.AreEqual(0, list.Count); } } |
| ||||
[Test] public void UseIsNotNullWithProjection() { using (ISession session = sessions.OpenSession()) { IList<Student> list = session.CreateCriteria( typeof(Student)). Add (Expression.IsNotNull(Projections.Id())). List<Student> (); Assert.AreEqual(1, list.Count); } } |
| |||
[Test] public void [[#variable54baea80]]() { using (ISession session = sessions.OpenSession()) { IList<Student> list = session.CreateCriteria( typeof(Student)).Add(Expression. [[#variable5ede0720]](Projections.Id())).List<Student> (); Assert.AreEqual( [[#variable5ede0700]], list.Count); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54baea80]] | UseIsNullWithProjection |
1 | 2 | [[#54baea80]] | UseIsNotNullWithProjection |
2 | 1 | [[#5ede0720]] | IsNull |
2 | 2 | [[#5ede0720]] | IsNotNull |
3 | 1 | [[#5ede0700]] | 0 |
3 | 2 | [[#5ede0700]] | 1 |