CloneSet452


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.997statement_list[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11032
src/NHibernate.Test/SqlCommandTest/SqlInsertBuilderFixture.cs
21078
src/NHibernate.Test/SqlCommandTest/SqlInsertBuilderFixture.cs
Clone Instance
1
Line Count
10
Source Line
32
Source File
src/NHibernate.Test/SqlCommandTest/SqlInsertBuilderFixture.cs

                        SqlCommandInfo sqlCommand = insert.ToSqlCommandInfo();
                        SqlType[] actualParameterTypes = sqlCommand.ParameterTypes;

                        string expectedSql =
                                "INSERT INTO test_insert_builder (intColumn, longColumn, literalColumn, stringColumn) VALUES (?, ?, 0, 5)";
                        Assert.AreEqual(expectedSql, sqlCommand.Text.ToString(), "SQL String");

                        Assert.AreEqual(2, actualParameterTypes.Length);
                        Assert.AreEqual(SqlTypeFactory.Int32, actualParameterTypes[0], "First Parameter Type");
                        Assert.AreEqual(SqlTypeFactory.Int64, actualParameterTypes[1], "Second Parameter Type");


Clone Instance
2
Line Count
10
Source Line
78
Source File
src/NHibernate.Test/SqlCommandTest/SqlInsertBuilderFixture.cs

                        SqlCommandInfo sqlCommand = insert.ToSqlCommandInfo();
                        SqlType[] actualParameterTypes = sqlCommand.ParameterTypes;

                        string expectedSql =
                                "INSERT INTO test_insert_builder (literalColumn, intColumn, stringColumn, longColumn) VALUES (0, ?, 5, ?)";
                        Assert.AreEqual(expectedSql, sqlCommand.Text.ToString(), "SQL String");

                        Assert.AreEqual(2, actualParameterTypes.Length);
                        Assert.AreEqual(SqlTypeFactory.Int32, actualParameterTypes[0], "First Parameter Type");
                        Assert.AreEqual(SqlTypeFactory.Int64, actualParameterTypes[1], "Second Parameter Type");


Clone AbstractionParameter Count: 1Parameter Bindings

SqlCommandInfo sqlCommand = insert.ToSqlCommandInfo();
SqlType[] actualParameterTypes = sqlCommand.ParameterTypes;
string expectedSql = [[#variable6530c040]];
Assert.AreEqual(expectedSql, sqlCommand.Text.ToString(), "SQL String");
Assert.AreEqual(2, actualParameterTypes.Length);
Assert.AreEqual(SqlTypeFactory.Int32, actualParameterTypes[0], "First Parameter Type");
Assert.AreEqual(SqlTypeFactory.Int64, actualParameterTypes[1], "Second Parameter Type");
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6530c040]]
"INSERT INTO test_insert_builder (literalColumn, intColumn, stringColumn, longColumn) VALUES (0, ?, 5, ?)" 
12[[#6530c040]]
"INSERT INTO test_insert_builder (intColumn, longColumn, literalColumn, stringColumn) VALUES (?, ?, 0, 5)"