CloneSet963


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9240.959class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19178
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
29189
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
Clone Instance
1
Line Count
9
Source Line
178
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void TrimBeginParamEndString()
                {
                        Parameter p1 = Parameter.Placeholder;

                        SqlString sql = new SqlString(new object[] { p1, "   extra space   "
                                                                   } );
                        sql = sql.Trim();
                        Assert.AreEqual("?   extra space", sql.ToString());
                }



Clone Instance
2
Line Count
9
Source Line
189
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void TrimBeginStringEndParam()
                {
                        Parameter p1 = Parameter.Placeholder;

                        SqlString sql = new SqlString(new object[] { "   extra space   ", p1
                                                                   } );
                        sql = sql.Trim();
                        Assert.AreEqual("extra space   ?", sql.ToString());
                }



Clone AbstractionParameter Count: 4Parameter Bindings

[Test]
public void [[#variable5568e8a0]]()
{
   Parameter p1 = Parameter.Placeholder;
   SqlString sql = new SqlString(new object[]
                                 {
                                     [[#variable5568e7a0]], [[#variable70e7c860]]
                                 } );
   sql = sql.Trim();
   Assert.AreEqual( [[#variable5568e600]], sql.ToString());
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5568e8a0]]
TrimBeginParamEndString 
12[[#5568e8a0]]
TrimBeginStringEndParam 
21[[#5568e7a0]]
p1 
22[[#5568e7a0]]
"   extra space   " 
31[[#70e7c860]]
"   extra space   " 
32[[#70e7c860]]
p1 
41[[#5568e600]]
"?   extra space" 
42[[#5568e600]]
"extra space   ?"