CloneSet450


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.997statement_list[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
194016
src/NHibernate.Test/Legacy/FooBarTest.cs
294027
src/NHibernate.Test/Legacy/FooBarTest.cs
Clone Instance
1
Line Count
9
Source Line
4016
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        rs =
                                s.CreateQuery(
                                        "select child.id, parent.id, child.Long from parent in class NHibernate.DomainModel.Foo, child in class NHibernate.DomainModel.Foo where parent.TheFoo = child").
                                         Enumerable().GetEnumerator();
                        Assert.IsTrue(rs.MoveNext());
                        row = (object[]) rs.Current;
                        Assert.AreEqual(foo.TheFoo.Key, row[0], "multi-column id");
                        Assert.AreEqual(foo.Key, row[1], "multi-column id");
                        Assert.AreEqual(foo.TheFoo.Long, row[2], "multi-column property");


Clone Instance
2
Line Count
9
Source Line
4027
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        rs =
                                s.CreateQuery(
                                        "select child.id, parent.id, child.Long, child, parent.TheFoo from parent in class NHibernate.DomainModel.Foo, child in class NHibernate.DomainModel.Foo where parent.TheFoo = child").
                                         Enumerable().GetEnumerator();
                        Assert.IsTrue(rs.MoveNext());
                        row = (object[]) rs.Current;
                        Assert.AreEqual(foo.TheFoo.Key, row[0], "multi-column id");
                        Assert.AreEqual(foo.Key, row[1], "multi-column id");
                        Assert.AreEqual(foo.TheFoo.Long, row[2], "multi-column property");


Clone AbstractionParameter Count: 1Parameter Bindings

rs = s.CreateQuery( [[#variable5459f8e0]]).Enumerable().GetEnumerator();
Assert.IsTrue(rs.MoveNext());
row = (object[])rs.Current;
Assert.AreEqual(foo.TheFoo.Key, row[0], "multi-column id");
Assert.AreEqual(foo.Key, row[1], "multi-column id");
Assert.AreEqual(foo.TheFoo.Long, row[2], "multi-column property");
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5459f8e0]]
"select child.id, parent.id, child.Long, child, parent.TheFoo from parent in class NHibernate.DomainModel.Foo, child in class NHibernate.DomainModel.Foo where parent.TheFoo = child" 
12[[#5459f8e0]]
"select child.id, parent.id, child.Long from parent in class NHibernate.DomainModel.Foo, child in class NHibernate.DomainModel.Foo where parent.TheFoo = child"