CloneSet898


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.983class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19254
src/NHibernate.Test/Criteria/ProjectionsTest.cs
29266
src/NHibernate.Test/Criteria/ProjectionsTest.cs
Clone Instance
1
Line Count
9
Source Line
254
Source File
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);
                        }
                }



Clone Instance
2
Line Count
9
Source Line
266
Source File
src/NHibernate.Test/Criteria/ProjectionsTest.cs

                [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);
                        }
                }



Clone AbstractionParameter Count: 3Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54baea80]]
UseIsNullWithProjection 
12[[#54baea80]]
UseIsNotNullWithProjection 
21[[#5ede0720]]
IsNull 
22[[#5ede0720]]
IsNotNull 
31[[#5ede0700]]
0 
32[[#5ede0700]]
1