CloneSet56


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10840.955class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11015
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs
21042
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs
31054
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs
41066
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs
51078
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs
610117
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs
710129
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs
810170
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs
Clone Instance
1
Line Count
10
Source Line
15
Source File
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs

                [Test]
                public void RowCountTest()
                {
                        ISession session = factory.OpenSession();
                        IProjection expression = Projections.RowCount();
                        CreateObjects( typeof(Simple), session);
                        SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
                        string expectedSql = "count(*) as y0_";
                        CompareSqlStrings(sqlString, expectedSql, 0);
                        session.Close();
                }



Clone Instance
2
Line Count
10
Source Line
42
Source File
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs

                [Test]
                public void MaxTest()
                {
                        ISession session = factory.OpenSession();
                        IProjection expression = Projections.Max("Pay");
                        CreateObjects( typeof(Simple), session);
                        SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
                        string expectedSql = "max(sql_alias.Pay) as y0_";
                        CompareSqlStrings(sqlString, expectedSql, 0);
                        session.Close();
                }



Clone Instance
3
Line Count
10
Source Line
54
Source File
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs

                [Test]
                public void MinTest()
                {
                        ISession session = factory.OpenSession();
                        IProjection expression = Projections.Min("Pay");
                        CreateObjects( typeof(Simple), session);
                        SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
                        string expectedSql = "min(sql_alias.Pay) as y0_";
                        CompareSqlStrings(sqlString, expectedSql, 0);
                        session.Close();
                }



Clone Instance
4
Line Count
10
Source Line
66
Source File
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs

                [Test]
                public void CountTest()
                {
                        ISession session = factory.OpenSession();
                        IProjection expression = Projections.Count("Pay");
                        CreateObjects( typeof(Simple), session);
                        SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
                        string expectedSql = "count(sql_alias.Pay) as y0_";
                        CompareSqlStrings(sqlString, expectedSql, 0);
                        session.Close();
                }



Clone Instance
5
Line Count
10
Source Line
78
Source File
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs

                [Test]
                public void CountDistinctTest()
                {
                        ISession session = factory.OpenSession();
                        IProjection expression = Projections.CountDistinct("Pay");
                        CreateObjects( typeof(Simple), session);
                        SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
                        string expectedSql = "count(distinct sql_alias.Pay) as y0_";
                        CompareSqlStrings(sqlString, expectedSql, 0);
                        session.Close();
                }



Clone Instance
6
Line Count
10
Source Line
117
Source File
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs

                [Test]
                public void IdTest()
                {
                        ISession session = factory.OpenSession();
                        IProjection expression = Projections.Id();
                        CreateObjects( typeof(Simple), session);
                        SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
                        string expectedSql = "sql_alias.id_ as y0_";
                        CompareSqlStrings(sqlString, expectedSql, 0);
                        session.Close();
                }



Clone Instance
7
Line Count
10
Source Line
129
Source File
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs

                [Test]
                public void PropertyTest()
                {
                        ISession session = factory.OpenSession();
                        IProjection expression = Projections.Property("Pay");
                        CreateObjects( typeof(Simple), session);
                        SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
                        string expectedSql = "sql_alias.Pay as y0_";
                        CompareSqlStrings(sqlString, expectedSql, 0);
                        session.Close();
                }



Clone Instance
8
Line Count
10
Source Line
170
Source File
src/NHibernate.Test/ExpressionTest/Projection/ProjectionFixture.cs

                [Test]
                public void SumTest()
                {
                        ISession session = factory.OpenSession();
                        IProjection expression = Projections.Sum("Pay");
                        CreateObjects( typeof(Simple), session);
                        SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
                        string expectedSql = "sum(sql_alias.Pay) as y0_";
                        CompareSqlStrings(sqlString, expectedSql, 0);
                        session.Close();
                }



Clone AbstractionParameter Count: 4Parameter Bindings

[Test]
public void [[#variable6e5281a0]]()
{
   ISession session = factory.OpenSession();
   IProjection expression = Projections. [[#variable6e528120]]( [[#variable6e5280a0]]);
   CreateObjects( typeof(Simple), session);
   SqlString sqlString = expression.ToSqlString(criteria, 0, criteriaQuery, new CollectionHelper.EmptyMapClass<string, IFilter> ());
   string expectedSql = [[#variable6e528040]];
   CompareSqlStrings(sqlString, expectedSql, 0);
   session.Close();
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6e5281a0]]
RowCountTest 
12[[#6e5281a0]]
IdTest 
13[[#6e5281a0]]
PropertyTest 
14[[#6e5281a0]]
SumTest 
15[[#6e5281a0]]
MaxTest 
16[[#6e5281a0]]
CountTest 
17[[#6e5281a0]]
CountDistinctTest 
18[[#6e5281a0]]
MinTest 
21[[#6e528120]]
RowCount 
22[[#6e528120]]
Id 
23[[#6e528120]]
Property 
24[[#6e528120]]
Sum 
25[[#6e528120]]
Max 
26[[#6e528120]]
Count 
27[[#6e528120]]
CountDistinct 
28[[#6e528120]]
Min 
31[[#6e5280a0]]
32[[#6e5280a0]]
33[[#6e5280a0]]
"Pay" 
34[[#6e5280a0]]
"Pay" 
35[[#6e5280a0]]
"Pay" 
36[[#6e5280a0]]
"Pay" 
37[[#6e5280a0]]
"Pay" 
38[[#6e5280a0]]
"Pay" 
41[[#6e528040]]
"count(*) as y0_" 
42[[#6e528040]]
"sql_alias.id_ as y0_" 
43[[#6e528040]]
"sql_alias.Pay as y0_" 
44[[#6e528040]]
"sum(sql_alias.Pay) as y0_" 
45[[#6e528040]]
"max(sql_alias.Pay) as y0_" 
46[[#6e528040]]
"count(sql_alias.Pay) as y0_" 
47[[#6e528040]]
"count(distinct sql_alias.Pay) as y0_" 
48[[#6e528040]]
"min(sql_alias.Pay) as y0_"