CloneSet567


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18220.971class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11858
src/NHibernate.Test/TypesTest/StringClobTypeFixture.cs
21817
src/NHibernate.Test/TypesTest/StringTypeFixture.cs
Clone Instance
1
Line Count
18
Source Line
58
Source File
src/NHibernate.Test/TypesTest/StringClobTypeFixture.cs

                [Test]
                public void InsertNullValue()
                {
                        using (ISession s = OpenSession())
                        {
                                StringClobClass b = new StringClobClass();
                                b.StringClob = null;
                                s.Save(b);
                                s.Flush();
                        }

                        using (ISession s = OpenSession())
                        {
                                StringClobClass b = (StringClobClass) s.CreateCriteria(
                                                                        typeof(StringClobClass)).UniqueResult();
                                Assert.IsNull(b.StringClob);
                                s.Delete(b);
                                s.Flush();
                        }
                }



Clone Instance
2
Line Count
18
Source Line
17
Source File
src/NHibernate.Test/TypesTest/StringTypeFixture.cs

                [Test]
                public void InsertNullValue()
                {
                        using (ISession s = OpenSession())
                        {
                                StringClass b = new StringClass();
                                b.StringValue = null;
                                s.Save(b);
                                s.Flush();
                        }

                        using (ISession s = OpenSession())
                        {
                                StringClass b = (StringClass) s.CreateCriteria(
                                                                typeof(StringClass)).UniqueResult();
                                Assert.IsNull(b.StringValue);
                                s.Delete(b);
                                s.Flush();
                        }
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[Test]
public void InsertNullValue()
{
   using (ISession s = OpenSession())
   {
       [[#variable56ab2780]]b = new [[#variable56ab2780]]();
      b. [[#variable56ab2fe0]]= null;
      s.Save(b);
      s.Flush();
   }
   using (ISession s = OpenSession())
   {
       [[#variable56ab2780]]b = ( [[#variable56ab2780]])s.CreateCriteria( typeof( [[#variable56ab2780]])).UniqueResult();
      Assert.IsNull(b. [[#variable56ab2fe0]]);
      s.Delete(b);
      s.Flush();
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56ab2780]]
StringClobClass 
12[[#56ab2780]]
StringClass 
21[[#56ab2fe0]]
StringClob 
22[[#56ab2fe0]]
StringValue