CloneSet2540


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4201.000statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1460
src/NHibernate.Test/NHSpecificTest/NH623/Fixture.cs
2468
src/NHibernate.Test/NHSpecificTest/NH623/Fixture.cs
Clone Instance
1
Line Count
4
Source Line
60
Source File
src/NHibernate.Test/NHSpecificTest/NH623/Fixture.cs

                        d = result[0] as Document;

                        // collection is lazy loaded an so it is also filtered so we will get here one element
                        Assert.AreEqual(1, d.Pages.Count);


Clone Instance
2
Line Count
4
Source Line
68
Source File
src/NHibernate.Test/NHSpecificTest/NH623/Fixture.cs

                        d = result[0] as Document;

                        // this assertion fails because if the collection is eager fetched it will contain all elements and will ignore the where clause.
                        Assert.AreEqual(1, d.Pages.Count);


Clone AbstractionParameter Count: 0Parameter Bindings

d = result[0] as Document;
// this assertion fails because if the collection is eager fetched it will contain all elements and will ignore the where clause.
// collection is lazy loaded an so it is also filtered so we will get here one element
Assert.AreEqual(1, d.Pages.Count);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None