Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.988 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 92 | src/NHibernate.Test/NHSpecificTest/NH335/Fixture.cs |
2 | 15 | 108 | 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(); } |
| ||||
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(); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6d893040]] | "from AbcThing" |
1 | 2 | [[#6d893040]] | "from OtherThing" |
2 | 1 | [[#6d892fc0]] | "There should be {0} AbcThings." |
2 | 2 | [[#6d892fc0]] | "There should be {0} OtherThings." |
3 | 1 | [[#6d892f40]] | AbcThing |
3 | 2 | [[#6d892f40]] | OtherThing |