CloneSet569


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14230.988non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11492
src/NHibernate.Test/NHSpecificTest/NH335/Fixture.cs
215108
src/NHibernate.Test/NHSpecificTest/NH335/Fixture.cs
Clone Instance
1
Line Count
14
Source Line
92
Source File
src/NHibernate.Test/NHSpecificTest/NH335/Fixture.cs

                        using (ISession session = OpenSession())
                        using (ITransaction tx = session.BeginTransaction())
                        {
                                IQuery query = session.CreateQuery("from AbcThing");
                                IList list = query.List();

                                Assert.AreEqual(numAbcThings, list.Count,
                                                String.Format("There should be {0} AbcThings.", numAbcThings));

                                foreach (object thing in list)
                                {
                                        Assert.IsTrue(thing is AbcThing);
                                }
                                tx.Commit();
                        }


Clone Instance
2
Line Count
15
Source Line
108
Source File
src/NHibernate.Test/NHSpecificTest/NH335/Fixture.cs

                        using (ISession session = OpenSession())
                        using (ITransaction tx = session.BeginTransaction())
                        {
                                IQuery query = session.CreateQuery("from OtherThing");
                                IList list = query.List();

                                Assert.AreEqual(numAbcThings, list.Count,
                                                String.Format("There should be {0} OtherThings.", numAbcThings));

                                foreach (object thing in list)
                                {
                                        Assert.IsTrue(thing is OtherThing);
                                }

                                tx.Commit();
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

using (ISession session = OpenSession())
   using (ITransaction tx = session.BeginTransaction())
   {
      IQuery query = session.CreateQuery( [[#variable6d893040]]);
      IList list = query.List();
      Assert.AreEqual(numAbcThings, list.Count, String.Format( [[#variable6d892fc0]], numAbcThings));
      foreach (object thing in list)
      {
         Assert.IsTrue(thing is [[#variable6d892f40]]);
      }
      tx.Commit();
   }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6d893040]]
"from AbcThing" 
12[[#6d893040]]
"from OtherThing" 
21[[#6d892fc0]]
"There should be {0} AbcThings." 
22[[#6d892fc0]]
"There should be {0} OtherThings." 
31[[#6d892f40]]
AbcThing 
32[[#6d892f40]]
OtherThing