CloneSet1849


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3230.971statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1472
src/NHibernate.Test/NHSpecificTest/NH266/UserFixture.cs
2380
src/NHibernate.Test/NHSpecificTest/NH266/UserFixture.cs
Clone Instance
1
Line Count
4
Source Line
72
Source File
src/NHibernate.Test/NHSpecificTest/NH266/UserFixture.cs

                        q.SetParameter("name", "active user");
                        list = q.List();

                        Assert.AreEqual(1, list.Count, "only 1 active user with that name");


Clone Instance
2
Line Count
3
Source Line
80
Source File
src/NHibernate.Test/NHSpecificTest/NH266/UserFixture.cs

                        // verify that even a user with a value in the db is 
                        // still not found even though a row exists
                        q.SetParameter("name", "inactive user");
                        list = q.List();
                        Assert.AreEqual(0, list.Count, "no 'inactive user' according to where clause");


Clone AbstractionParameter Count: 3Parameter Bindings

// verify that even a user with a value in the db is 
// still not found even though a row exists
q.SetParameter("name", [[#variable6cd16840]]);
list = q.List();
Assert.AreEqual( [[#variable6cd15cc0]], list.Count, [[#variable6cd166a0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6cd16840]]
"inactive user" 
12[[#6cd16840]]
"active user" 
21[[#6cd15cc0]]
0 
22[[#6cd15cc0]]
1 
31[[#6cd166a0]]
"no 'inactive user' according to where clause" 
32[[#6cd166a0]]
"only 1 active user with that name"