| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 2 | 2 | 0.983 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 35 | src/NHibernate.Test/TransactionTest/TransactionFixture.cs |
| 2 | 8 | 46 | src/NHibernate.Test/TransactionTest/TransactionFixture.cs |
| ||||
[Test]
public void CommitAfterDisposeThrowsException()
{
using (ISession s = OpenSession())
{
ITransaction t = s.BeginTransaction();
t.Dispose();
Assert.Throws<ObjectDisposedException> (() => t.Commit());
}
}
|
| ||||
[Test]
public void RollbackAfterDisposeThrowsException()
{
using (ISession s = OpenSession())
{
ITransaction t = s.BeginTransaction();
t.Dispose();
Assert.Throws<ObjectDisposedException> (() => t.Rollback());
}
}
|
| |||
[Test]
public void [[#variable2772e980]]()
{
using (ISession s = OpenSession())
{
ITransaction t = s.BeginTransaction();
t.Dispose();
Assert.Throws<ObjectDisposedException> (() => t. [[#variable2772e960]]());
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#2772e980]] | CommitAfterDisposeThrowsException |
| 1 | 2 | [[#2772e980]] | RollbackAfterDisposeThrowsException |
| 2 | 1 | [[#2772e960]] | Commit |
| 2 | 2 | [[#2772e960]] | Rollback |