CloneSet627


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20230.987statement_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1214637
src/NHibernate.Test/Legacy/FooBarTest.cs
2204662
src/NHibernate.Test/Legacy/FooBarTest.cs
Clone Instance
1
Line Count
21
Source Line
4637
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        foreach (One one in enumerable)
                        {
                                switch (count)
                                {
                                        case 0:
                                                Assert.AreEqual("a", one.Value, "a - ordering failed");
                                                break;
                                        case 1:
                                                Assert.AreEqual("b", one.Value, "b - ordering failed");
                                                break;
                                        default:
                                                Assert.Fail("more than two elements");
                                                break;
                                }
                                count++;
                        }

                        s.Flush();
                        s.Close();

                        s = OpenSession();


Clone Instance
2
Line Count
20
Source Line
4662
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        foreach (One one in enumerable)
                        {
                                switch (count)
                                {
                                        case 0:
                                                Assert.AreEqual("a", one.Value, "'a' should be first element");
                                                break;
                                        case 1:
                                                Assert.AreEqual("b", one.Value, "'b' should be second element");
                                                break;
                                        default:
                                                Assert.Fail("more than 2 elements");
                                                break;
                                }
                                count++;
                        }
                        s.Flush();
                        s.Close();

                        s = OpenSession();


Clone AbstractionParameter Count: 3Parameter Bindings

foreach (One one in enumerable)
{
   switch (count)
   {
      case 0:
         Assert.AreEqual("a", one.Value, [[#variable5f74a4a0]]);
         break;
      case 1:
         Assert.AreEqual("b", one.Value, [[#variable5f74a480]]);
         break;
      default:
         Assert.Fail( [[#variable5f74a420]]);
         break;
   }
   count++;
}
s.Flush();
s.Close();
s = OpenSession();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f74a4a0]]
"'a' should be first element" 
12[[#5f74a4a0]]
"a - ordering failed" 
21[[#5f74a480]]
"'b' should be second element" 
22[[#5f74a480]]
"b - ordering failed" 
31[[#5f74a420]]
"more than 2 elements" 
32[[#5f74a420]]
"more than two elements"