| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 3 | 0.981 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 123 | src/NHibernate.Test/UtilityTest/LinkedHashMapFixture.cs |
| 2 | 10 | 151 | src/NHibernate.Test/UtilityTest/LinkedHashMapFixture.cs |
| ||||
[Test]
public void GetEnumeratorModifyExceptionFromAdd()
{
IDictionary<string, Player> lhm = new LinkedHashMap<string, Player> ();
lhm["123"] = new Player("123", "yyyyyyy");
Assert.Throws<InvalidOperationException> (() =>
{
foreach (KeyValuePair<string, Player> pair in lhm)
{
lhm["78945"] = new Player("78945", "Someone");
}
} );
}
|
| ||||
[Test]
public void GetEnumeratorModifyExceptionFromUpdate()
{
IDictionary<string, Player> lhm = new LinkedHashMap<string, Player> ();
lhm["123"] = new Player("123", "yyyyyyy");
Assert.Throws<InvalidOperationException> (() =>
{
foreach (KeyValuePair<string, Player> pair in lhm)
{
lhm["123"] = new Player("123", "aaaaaaa");
}
} );
}
|
| |||
[Test]
public void [[#variable54a67f40]]()
{
IDictionary<string, Player> lhm = new LinkedHashMap<string, Player> ();
lhm["123"] = new Player("123", "yyyyyyy");
Assert.Throws<InvalidOperationException> (() => {
foreach (KeyValuePair<string, Player> pair in lhm)
{
lhm[ [[#variable584473c0]]] = new Player( [[#variable584473c0]], [[#variable58447260]]);
}
} );
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#54a67f40]] | GetEnumeratorModifyExceptionFromAdd |
| 1 | 2 | [[#54a67f40]] | GetEnumeratorModifyExceptionFromUpdate |
| 2 | 1 | [[#584473c0]] | "78945" |
| 2 | 2 | [[#584473c0]] | "123" |
| 3 | 1 | [[#58447260]] | "Someone" |
| 3 | 2 | [[#58447260]] | "aaaaaaa" |