CloneSet976


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.982class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11062
src/NHibernate.Test/TransactionTest/TransactionNotificationFixture.cs
21075
src/NHibernate.Test/TransactionTest/TransactionNotificationFixture.cs
Clone Instance
1
Line Count
10
Source Line
62
Source File
src/NHibernate.Test/TransactionTest/TransactionNotificationFixture.cs

                [Test]
                public void Commit()
                {
                        RecordingInterceptor interceptor = new RecordingInterceptor();
                        using (ISession session = sessions.OpenSession(interceptor))
                        {
                                ITransaction tx = session.BeginTransaction();
                                tx.Commit();
                                Assert.IsTrue(interceptor.beforeTransactionCompletionCalled);
                                Assert.IsTrue(interceptor.afterTransactionCompletionCalled);
                        }
                }



Clone Instance
2
Line Count
10
Source Line
75
Source File
src/NHibernate.Test/TransactionTest/TransactionNotificationFixture.cs

                [Test]
                public void Rollback()
                {
                        RecordingInterceptor interceptor = new RecordingInterceptor();
                        using (ISession session = sessions.OpenSession(interceptor))
                        {
                                ITransaction tx = session.BeginTransaction();
                                tx.Rollback();
                                Assert.IsFalse(interceptor.beforeTransactionCompletionCalled);
                                Assert.IsTrue(interceptor.afterTransactionCompletionCalled);
                        }
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[Test]
public void [[#variable2ba77ac0]]()
{
   RecordingInterceptor interceptor = new RecordingInterceptor();
   using (ISession session = sessions.OpenSession(interceptor))
   {
      ITransaction tx = session.BeginTransaction();
      tx. [[#variable2ba77ac0]]();
      Assert. [[#variable2ba77a60]](interceptor.beforeTransactionCompletionCalled);
      Assert.IsTrue(interceptor.afterTransactionCompletionCalled);
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2ba77ac0]]
Commit 
12[[#2ba77ac0]]
Rollback 
21[[#2ba77a60]]
IsTrue 
22[[#2ba77a60]]
IsFalse