CloneSet1416


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11330.965non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11158
src/NHibernate.Test/Classic/ValidatableFixture.cs
211107
src/NHibernate.Test/Classic/ValidatableFixture.cs
311122
src/NHibernate.Test/Classic/ValidatableFixture.cs
Clone Instance
1
Line Count
11
Source Line
58
Source File
src/NHibernate.Test/Classic/ValidatableFixture.cs

                        try
                        {
                                using (ISession s = OpenSession())
                                {
                                        s.Update(v);
                                        s.Flush();
                                }
                                Assert.Fail("Updated an invalid entity");
                        }
                        catch (ValidationFailure)
                        {
                                // Ok
                        }


Clone Instance
2
Line Count
11
Source Line
107
Source File
src/NHibernate.Test/Classic/ValidatableFixture.cs

                        try
                        {
                                using (ISession s = OpenSession())
                                {
                                        s.SaveOrUpdateCopy(v);
                                        s.Flush();
                                }
                                Assert.Fail("Updated an invalid entity");
                        }
                        catch (ValidationFailure)
                        {
                                // Ok
                        }


Clone Instance
3
Line Count
11
Source Line
122
Source File
src/NHibernate.Test/Classic/ValidatableFixture.cs

                        try
                        {
                                using (ISession s = OpenSession())
                                {
                                        s.SaveOrUpdateCopy(v1);
                                        s.Flush();
                                }
                                Assert.Fail("saved an invalid entity");
                        }
                        catch (ValidationFailure)
                        {
                                // Ok
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

try
{
   using (ISession s = OpenSession())
   {
      s. [[#variable27c994c0]]( [[#variable27c99400]]);
      s.Flush();
   }
   Assert.Fail( [[#variable27c99360]]);
}
catch (ValidationFailure)
{
// Ok
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#27c994c0]]
Update 
12[[#27c994c0]]
SaveOrUpdateCopy 
13[[#27c994c0]]
SaveOrUpdateCopy 
21[[#27c99400]]
v 
22[[#27c99400]]
v 
23[[#27c99400]]
v1 
31[[#27c99360]]
"Updated an invalid entity" 
32[[#27c99360]]
"Updated an invalid entity" 
33[[#27c99360]]
"saved an invalid entity"