CloneSet689


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.981class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110123
src/NHibernate.Test/UtilityTest/LinkedHashMapFixture.cs
210151
src/NHibernate.Test/UtilityTest/LinkedHashMapFixture.cs
Clone Instance
1
Line Count
10
Source Line
123
Source File
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");
                                                                                 }
                                                                         } );
                }



Clone Instance
2
Line Count
10
Source Line
151
Source File
src/NHibernate.Test/UtilityTest/LinkedHashMapFixture.cs

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



Clone AbstractionParameter Count: 3Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54a67f40]]
GetEnumeratorModifyExceptionFromAdd 
12[[#54a67f40]]
GetEnumeratorModifyExceptionFromUpdate 
21[[#584473c0]]
"78945" 
22[[#584473c0]]
"123" 
31[[#58447260]]
"Someone" 
32[[#58447260]]
"aaaaaaa"