Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 3 | 0.987 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 266 | src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs |
2 | 15 | 285 | src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs |
| ||||
[Test] public void NativeScalarQueryWithUndefinedResultset() { if ( !(Dialect is MsSql2000Dialect)) { Assert.Ignore("This does not apply to {0}", Dialect); } using (ISession session = OpenSession()) { using (session.BeginTransaction()) { // Native SQL Query outcome is not validated against <return-*> // resultset declarations. var result = session.GetNamedQuery("ScalarQueryWithUndefinedResultset").UniqueResult<int> (); Assert.That(result, Is.EqualTo(1)); } } } |
| ||||
[Test] public void NativeScalarQueryWithDefinedResultset() { if ( !(Dialect is MsSql2000Dialect)) { Assert.Ignore("This does not apply to {0}", Dialect); } using (ISession session = OpenSession()) { using (session.BeginTransaction()) { // Native SQL Query outcome is not validated against <return-*> // resultset declarations. var result = session.GetNamedQuery("ScalarQueryWithDefinedResultset").UniqueResult<int> (); Assert.That(result, Is.EqualTo(2)); } } } |
| |||
[Test] public void [[#variable545dbc40]]() { if ( !(Dialect is MsSql2000Dialect)) { Assert.Ignore("This does not apply to {0}", Dialect); } using (ISession session = OpenSession()) { using (session.BeginTransaction()) { // Native SQL Query outcome is not validated against <return-*> // resultset declarations. var result = session.GetNamedQuery( [[#variable545dbbc0]]).UniqueResult<int> (); Assert.That(result, Is.EqualTo( [[#variable545dbb40]])); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#545dbc40]] | NativeScalarQueryWithUndefinedResultset |
1 | 2 | [[#545dbc40]] | NativeScalarQueryWithDefinedResultset |
2 | 1 | [[#545dbbc0]] | "ScalarQueryWithUndefinedResultset" |
2 | 2 | [[#545dbbc0]] | "ScalarQueryWithDefinedResultset" |
3 | 1 | [[#545dbb40]] | 1 |
3 | 2 | [[#545dbb40]] | 2 |