CloneSet659


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.987class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115266
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
215285
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
Clone Instance
1
Line Count
15
Source Line
266
Source File
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));
                                }
                        }
                }



Clone Instance
2
Line Count
15
Source Line
285
Source File
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs

                [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));
                                }
                        }
                }



Clone AbstractionParameter Count: 3Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#545dbc40]]
NativeScalarQueryWithUndefinedResultset 
12[[#545dbc40]]
NativeScalarQueryWithDefinedResultset 
21[[#545dbbc0]]
"ScalarQueryWithUndefinedResultset" 
22[[#545dbbc0]]
"ScalarQueryWithDefinedResultset" 
31[[#545dbb40]]
1 
32[[#545dbb40]]
2